-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.prod.yml
84 lines (83 loc) · 2.02 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: unteris
services:
site:
image: jmcdo29/unteris-site
ports:
- '127.0.0.1:8080:80'
volumes:
- './images:/src/dist/apps/site/images'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
server:
image: jmcdo29/unteris-server
logging:
driver: local
env_file: .env
environment:
DATABASE_HOST: postgres
volumes:
- './images:/src/images'
ports:
- '127.0.0.1:3333:3333'
depends_on:
- postgres
- redis
- rabbit
labels:
- 'com.centurylinklabs.watchtower.enable=true'
image-server:
image: jmcdo29/unteris-image-server
logging:
driver: local
env_file: .env
environment:
DATABASE_HOST: postgres
volumes:
- './images:/src/images'
depends_on:
- postgres
- rabbit
labels:
- 'com.centurylinklabs.watchtower.enable=true'
migrations:
image: jmcdo29/unteris-migrations
env_file: .env
environment:
DATABASE_HOST: postgres
logging:
driver: local
depends_on:
- postgres
labels:
- 'com.centurylinklabs.watchtower.enable=true'
watchtower:
image: containrrr/watchtower
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
command: '--include-stopped --revive-stopped --schedule "0 0 * * * *" --label-enable'
postgres:
image: jmcdo29/unteris-postgres
env_file: .env
ports:
- '127.0.0.1:5433:5432'
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- ./postgres-data:/var/lib/postgresql/data
redis:
image: redis:7.2.1
ports:
- '127.0.0.1:6380:6379'
volumes:
- './redis.conf:/usr/local/etc/redis/redis.conf'
command: redis-server /usr/local/etc/redis/redis.conf
rabbitmq:
image: rabbitmq:3.12.6
ports:
- '127.0.0.1:5673:5672'
volumes:
- './rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf'