forked from diverso-lab/uvlhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
66 lines (59 loc) · 1.32 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
version: '3.8'
services:
web:
image: drorganvidez/uvlhub:latest
volumes:
- .:/app
ports:
- "5000:5000"
environment:
FLASK_ENV: production
depends_on:
- db
restart: always
flamapyapi:
image: flamapy/flamapy-fm-dist:v1.5.3
deploy:
replicas: 3
restart: always
expose:
- 8000
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.prod.conf:/etc/nginx/nginx.conf
- ./letsencrypt:/etc/letsencrypt:ro
- ./public:/var/www:rw
ports:
- "80:80"
- "443:443"
depends_on:
- flamapyapi
restart: always
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 120 uvlhub-web-1
restart: always
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./public:/var/www:rw
- ./letsencrypt:/etc/letsencrypt
volumes:
db_data: