-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (74 loc) · 1.51 KB
/
docker-compose.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
version: '3.8'
services:
worker:
build:
context: ./
dockerfile: ./Dockerfile.worker
# scale: 3
depends_on:
- pubsub
- database
networks:
- ps
- db
environment:
MONGODB_HOST: database
REDIS_HOST: pubsub
MAX_PATH_LENGTH: '${MAX_PATH_LENGTH}'
MAX_PATH_PROPS: '${MAX_PATH_PROPS}'
restart: unless-stopped
pubsub:
image: redis
networks:
- ps
restart: unless-stopped
ports:
- '6378:6379'
manager:
build:
context: ./
dockerfile: ./Dockerfile.manager
restart: unless-stopped
depends_on:
- pubsub
- database
networks:
- ps
- db
environment:
MONGODB_HOST: database
REDIS_HOST: pubsub
MAX_PATH_LENGTH: '${MAX_PATH_LENGTH}'
MAX_PATH_PROPS: '${MAX_PATH_PROPS}'
volumes:
- type: bind
source: ./data/export
target: /data/export
ports:
- '3000:3000'
- '5432:5432'
database:
image: mongo
restart:
unless-stopped
#environment:
# MONGO_INITDB_ROOT_USERNAME_FILE: /run/secrets/MONGODB_USER
# MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/MONGODB_PASS
volumes:
- type: bind
source: ./data/db
target: /data/db
ports:
- '27018:27017'
networks:
- db
#secrets:
# MONGODB_PORT:
# external: true
# MONGODB_USER:
# external: true
# MONGODB_PASS:
# external: true
networks:
db:
ps: