forked from lanc33llis/FlaskPortfolioSite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (50 loc) · 993 Bytes
/
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
version: "3"
services:
web:
container_name: web
build: .
ports:
- "5000:80"
restart: always
env_file:
- .env
volumes:
- .:/myportfolio
depends_on:
- db
db:
container_name: db
image: postgres
restart: always
env_file:
- .env
volumes:
- mydatabase:/var/lib/postgresql/data
nginx:
container_name: nginx
image: jonasal/nginx-certbot:latest
restart: unless-stopped
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./user_conf.d:/etc/nginx/user_conf.d
depends_on:
- web
cadvisor:
container_name: cadvisor
image: gcr.io/cadvisor/cadvisor:latest
restart: unless-stopped
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
volumes:
mydatabase:
nginx_secrets: