-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
59 lines (57 loc) · 1.14 KB
/
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
networks:
app-tier:
driver: bridge
secrets:
db_password:
file: ./secrets/db_password
jwt_key:
file: ./secrets/jwt_key
services:
mongo:
image: mongo
restart: always
volumes:
- ./db_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
expose:
- '27017'
ports:
- '27017:27017'
networks:
- app-tier
auth:
image: epicpigeon/auth_service:1
restart: always
environment:
MONGO_PASSWORD_FILE: /run/secrets/db_password
JWT_KEY_FILE: /run/secrets/jwt_key
secrets:
- jwt_key
- db_password
ports:
- '8080:8080'
networks:
- app-tier
backend:
image: epicpigeon/backend:1
restart: always
environment:
MONGO_PASSWORD_FILE: /run/secrets/db_password
AUTH_URL: 'http://auth:8080/info'
secrets:
- db_password
ports:
- '8081:8081'
networks:
- app-tier
frontend:
image: epicpigeon/frontend:1
restart: always
environment:
THIS_DOMAIN: 'localhost'
ports:
- '80:80'