forked from rkskekzzz/timong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.11 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
version: '3'
services:
db:
container_name: db
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: calendar
ports:
- '27017:27017'
volumes:
- ${MONGO_MOUNT_PATH}:/data/db
networks:
- service_network
restart: always
backend:
container_name: backend
build:
context: .
dockerfile: ${BACKEND_DOCKERFILE}
depends_on:
- db
ports:
- 5500:5500
networks:
- service_network
restart: always
frontend:
container_name: frontend
build:
context: .
dockerfile: ${FRONTEND_DOCKERFILE}
networks:
- service_network
restart: always
nginx-proxy:
container_name: nginx-proxy
depends_on:
- db
- backend
- frontend
image: nginx:latest
ports:
- '80:80'
- '433:433'
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
restart: always
networks:
- service_network
networks:
service_network:
driver: bridge