-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (97 loc) · 2.22 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
version: '3.9'
services:
proxy:
image: traefik:v2.7
command:
- "--api"
- "--api.dashboard"
- "--api.insecure"
- "--providers.docker"
- "--entrypoints.web.address=:80"
volumes:
- ./traefik/traefik.yml:/etc/traefik/traefik.yml
- /var/run/docker.sock:/var/run/docker.sock
networks:
- vulder
ports:
- 5133:80
- 8080:8080
redis:
image: redis:6.2.6-alpine
command: ["redis-server", "--bind", "redis", "--port", "6379"]
networks:
- vulder
ports:
- 6379:6379
redis-web:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
networks:
- vulder
ports:
- 9080:8081
mongo-express:
image: mongo-express:latest
networks:
- vulder
ports:
- 8081:8081
mongo:
container_name: mongo
image: mongo:4.2.21
volumes:
- vulder-data:/data/db
networks:
- vulder
ports:
- 27017:27017
school:
container_name: schools
build: ./School
networks:
- vulder
ports:
- 6000:80
environment:
- REDIS_CONNECTION_STRING=redis
- MONGODB_CONNECTION_STRING=mongodb://mongo:27017/
labels:
- "traefik.http.routers.blog.rule=Host(`localhost`)"
- "traefik.http.routers.school.rule=PathPrefix(`/school`)"
- "traefik.port=6000"
timetable:
build: ./Timetable
networks:
- vulder
ports:
- 6001:80
environment:
- BASE_API_URL=http://schools
- REDIS_CONNECTION_STRING=redis
labels:
- "traefik.http.routers.blog.rule=Host(`localhost`)"
- "traefik.http.routers.timetable.rule=PathPrefix(`/branches`) || PathPrefix(`/timetable`)"
- "traefik.port=6001"
form:
build: ./SchoolForm
networks:
- vulder
ports:
- 6002:80
environment:
- MONGODB_CONNECTION_STRING=mongodb://mongo:27017/
- USE_SENDGRID=false
- SENDGRID_API_KEY
- SENDGRID_EMAIL
labels:
- "traefik.http.routers.blog.rule=Host(`localhost`)"
- "traefik.http.routers.form.rule=PathPrefix(`/form`)"
- "traefik.port=6002"
networks:
vulder:
driver: vulder-driver
external: true
volumes:
vulder-data:
external: true