-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.13 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
version: '3'
services:
fastapi:
build: .
container_name: chatbot
restart: unless-stopped
env_file:
- .env
environment:
MONGODB_HOST: mongodb
volumes:
- appdata:/app
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- mongodb
networks:
- frontend
- backend
ports:
- "8000:8000"
mongodb:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
command: ["--bind_ip_all"]
env_file: [.env-mongo, .env]
ports:
- "27017:27017"
volumes:
- mongodbdata:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- backend
webserver:
image: nginx:latest
container_name: webserver
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- nginxdata:/var/log/nginx
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- fastapi
networks:
- frontend
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
mongodbdata:
driver: local
appdata:
driver: local
nginxdata:
driver: local