-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_prod.yml
84 lines (84 loc) · 2.12 KB
/
docker-compose_prod.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
# ssl nginx proxy
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./volume/nginx-proxy/certs:/etc/nginx/certs
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
- ./volume/nginx-proxy/html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
restart: always
volumes:
- ./volume/nginx-proxy/certs:/etc/nginx/certs
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
- ./volume/nginx-proxy/html:/usr/share/nginx/html
- ./volume/nginx-proxy/acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
# backend flask
flask:
build: ./web
container_name: flask
restart: always
volumes:
- ./volume/flask/dyn:/app/static/dyn
environment:
- APP_NAME=FlaskAqi
- TZ=Asia/Bangkok
# - MAINTENANCE=True
expose:
- "8080"
# nginx infront of uwsgi
nginx:
build: ./nginx
container_name: backend_nginx
restart: always
environment:
- VIRTUAL_HOST=www.lpb-air.com,lpb-air.com
- LETSENCRYPT_HOST=www.lpb-air.com,lpb-air.com
expose:
- "80"
depends_on:
- flask
# backend postgres
postgres:
image: postgres:15
container_name: postgres
restart: always
volumes:
- ./volume/postgres15:/var/lib/postgresql/data/
env_file:
- ./env/postgres.env
expose:
- "5432"
# umami stats
umami:
image: docker.umami.dev/umami-software/umami:postgresql-latest
container_name: umami
expose:
- "3000"
env_file:
- ./env/umami.env
environment:
- VIRTUAL_HOST=www.stats.lpb-air.com
- LETSENCRYPT_HOST=www.stats.lpb-air.com
depends_on:
- umami-db
restart: always
umami-db:
image: postgres:15
container_name: umami-db
env_file:
- ./env/umami.env
volumes:
- ./volume/umami/postgres15:/var/lib/postgresql/data
restart: always