-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
43 lines (39 loc) · 996 Bytes
/
docker-compose.yaml
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
version: '3'
services:
db:
image: mariadb:10.4
container_name: db
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password']
ports:
- '${DB_PORT}:${DB_PORT}'
expose:
- '${DB_PORT}'
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
volumes:
- dbdata:/var/lib/mysql
backend:
build:
context: .
dockerfile: ./docker/app/Dockerfile
ports:
- "5000:5000"
volumes:
- ./app:/opt/app
- ./from app.extensions:/opt/from app.extensions
- ./migrations:/opt/migrations
depends_on:
- db
environment:
- FLASK_DEBUG=1
- FLASK_APP=app.manage:flask_app
env_file: ./.env
# override the default network
networks:
default:
name: app-network
volumes:
dbdata: