-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 895 Bytes
/
docker-compose.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
version: '3.8'
services:
flask_app:
environment:
FLASK_DEBUG: 1
volumes:
- .:/app
build: .
ports:
- "4000:4000"
depends_on:
- mysql
- redis
test:
build: .
volumes:
- .:/app
command: pytest
depends_on:
- mysql
- redis
environment:
- PYTHONPATH=/app
mysql:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASEL: splitzer
MYSQL_USER: splitzer
MYSQL_PASSWORD: splitzer
ports:
- "3307:3307"
volumes:
- db_data:/var/lib/mysql
phpmyadmin:
build:
context: .
dockerfile: Dockerfile_phpmyadmin
ports:
- "8090:80"
depends_on:
- mysql
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
db_data: