-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
99 lines (82 loc) · 1.99 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.2'
networks:
proxy:
external: true
internal:
external: false
services:
plp_reverse_proxy:
container_name: plp_traefik
image: traefik:${TAG_TRAEFIK}
restart: always
labels:
# Dashboard
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.middlewares=admin
### Next line's '$' are doubled as to escape them
- traefik.http.middlewares.admin.basicauth.users=admin:$$apr1$$Qai983Ya$$XNOr.GZjn3Uggtu3iHqbY/
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "./etc/traefik/acme.json:/acme.json"
networks:
- internal
- proxy
plp_web:
restart: always
build:
context: ./web
args:
TAG_NODE: $TAG_NODE
TAG_VUECLI: $TAG_VUECLI
labels:
- traefik.enable=true
- traefik.http.services.plp_web.loadbalancer.server.port=8080
networks:
- internal
depends_on:
- plp_reverse_proxy
- plp_api
plp_mongodb:
image: mongo:$TAG_MONGODB
container_name: plp_mongodb
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- mongodata:/data/db
command: mongod --logpath=/dev/null # --quiet
networks:
- internal
- proxy #temporary, need to find fix
ports:
- 27017:27017 #temporary, need to find fix
depends_on:
- plp_reverse_proxy
labels:
- traefik.enable=false
plp_api:
restart: always
container_name: plp_api
image: im_plp_api_dev
environment:
- PYTHONUNBUFFERED=0
build:
context: ./etc/flask
dockerfile: Dockerfile
args:
TAG_PYTHON: $TAG_PYTHON
command: flask run
labels:
- traefik.enable=true
- traefik.http.services.plp_api.loadbalancer.server.port=5000
networks:
- internal
depends_on:
- plp_mongodb
- plp_reverse_proxy
volumes:
mongodata:
external: true