-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.18 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
services:
app:
container_name: my-net-worth
image: my-net-worth-image
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 5000
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/app
depends_on:
- mongodb
networks:
- net-worth-net
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "4"
dns:
- 8.8.8.8
- 8.8.4.4
mongodb:
container_name: mongodb
image: mongo:4.2.3-bionic
volumes:
- mongo-data:/data/db
networks:
- net-worth-net
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "4"
env_file:
- .env
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl/certs:/etc/nginx/ssl/certs:ro
- ./nginx/ssl/private:/etc/nginx/ssl/private:ro
depends_on:
- app
networks:
- net-worth-net
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "4"
volumes:
mongo-data:
networks:
net-worth-net: