forked from diverso-lab/uvlhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
52 lines (47 loc) · 973 Bytes
/
docker-compose.dev.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
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/app
expose:
- "5000"
environment:
FLASK_ENV: development
depends_on:
- db
flamapyapi:
image: flamapy/flamapy-fm-dist:v1.5.3
deploy:
replicas: 3
restart_policy:
condition: on-failure
expose:
- 8000
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.dev.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
- "8000:8000"
depends_on:
- web
- flamapyapi
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
volumes:
db_data: