forked from diverso-lab/uvlhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.swarm.yml
56 lines (50 loc) · 1.13 KB
/
docker-compose.swarm.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
version: '3.8'
services:
web:
image: drorganvidez/uvlhub:latest
volumes:
- .:/app
ports:
- "5000:5000"
environment:
- FLASK_ENV=production
depends_on:
- db
flamapyapi:
image: flamapy/flamapy-fm-dist:v1.5.3
deploy:
mode: replicated
replicas: 3
resources:
limits:
cpus: '0.5'
memory: 512M
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.prod.conf:/etc/nginx/nginx.conf
- /letsencrypt:/etc/letsencrypt:ro
ports:
- "80:80"
- "443:443"
depends_on:
- flamapyapi
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
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
volumes:
db_data: