-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.47 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
version: "2"
services:
reverse-proxy:
container_name: traefik
image: traefik
command: --api --docker
restart: always
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
platform:
container_name: platform
restart: always
build: ./platform
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- backend
labels:
- "traefik.frontend.rule=Host:abakus.local,dev.algorytmik.e1s.it"
admin:
container_name: admin-panel
restart: always
build: ./admin-panel
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- backend
labels:
- "traefik.frontend.rule=Host:admin.abakus.local,admin.dev.algorytmik.e1s.it"
backend:
container_name: backend-api
restart: always
build: ./backend-api
environment:
- MONGODB_PATH=mongo:27017/algorytmik
- JWT_SECRET=Algorytmik#2019
- PORT=3001
expose:
- "3001"
ports:
- "3001:3001"
links:
- mongo
mongo:
container_name: mongo
image: mongo
restart: always
volumes:
- ./data:/data/db
ports:
- "27017:27017"
mongo-express:
container_name: mongo-express
image: mongo-express
restart: always
labels:
- "traefik.frontend.rule=Host:db.abakus.local,db.dev.algorytmik.e1s.it"
- "traefik.port=8081"