-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yaml
82 lines (54 loc) · 1019 Bytes
/
docker-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.8"
services:
web-server:
container_name: nginx
image: nginx:latest
restart: always
environment:
TZ: "Asia/Seoul"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
networks:
- aid
server:
container_name: FastapiApp
depends_on:
- db
restart: always
build:
context: .
dockerfile: Dockerfile
volumes:
- ./app:/app
command: sh -c "cd /app && uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload"
expose:
- 8000
environment:
TZ: "Asia/Seoul"
env_file:
- ./env/.server.env
networks:
- aid
db:
image: mongo:latest
restart: always
container_name: db
volumes:
- data-vol:/data/db
ports:
- 30017:27017
expose:
- 27017
env_file:
- ./env/.db.env
networks:
- aid
networks:
aid:
driver: bridge
volumes:
data-vol:
driver: local
# external: true