-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (79 loc) · 1.83 KB
/
docker-compose.yaml
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
85
version: '3'
services:
nginx:
image: reverseproxy
build: ./reverseproxy
ports:
- "8080:8080"
depends_on:
- backend-authman
- backend-taskman
- backend-notifications
mongo:
image: mongo
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- mongo-db:/data/db
redis:
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass password
volumes:
- redis-db:/data/cache
rabbitmq:
image: rabbitmq:3.8-alpine
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 5
backend-authman:
image: backend-authman
build: ./authman-service
depends_on:
- mongo
- redis
env_file:
- .env
backend-taskman:
image: backend-taskman
build: ./reminder-service
volumes:
- type: bind
source: ./app.env
target: /app/app.env
depends_on:
authman:
condition: service_started
mongo:
condition: service_started
rabbitmq:
condition: service_healthy
backend-notifications:
image: backend-notifications
build: ./notification-service
volumes:
- type: bind
source: ./app.env
target: /app/app.env
- type: bind
source: ./taskman-firebase-adminsdk.json
target: /app/taskman-firebase-adminsdk.json
depends_on:
authman:
condition: service_started
mongo:
condition: service_started
rabbitmq:
condition: service_healthy
volumes:
mongo-db:
driver: local
redis-db:
driver: local