-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 933 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
version: '3'
services:
mysql:
container_name: flask_mysql
# let's grab from mysql 5.7 image
image: mysql:5.7
volumes:
# pass volume named mysql-data to mysql container
- mysql-data:/var/lib/mysql
restart: unless-stopped
labels:
project: "flask"
ports:
- "3306:3306"
environment:
# credentials
MYSQL_ROOT_PASSWORD: mypassword24#
MYSQL_DATABASE: flask
MYSQL_USER: flask
MYSQL_PASSWORD: mypassword24#
phpmyadmin:
depends_on:
- mysql
image: phpmyadmin/phpmyadmin:latest
container_name: flask_phpmyadmin
restart: unless-stopped
labels:
project: "flask"
ports:
- "5010:80"
environment:
PMA_HOST: mysql
PMA_USER: flask
PMA_PASSWORD: mypassword24#
MYSQL_ROOT_PASSWORD: mypassword24#
# volumes definition here
volumes:
# just a persistance data
mysql-data:
driver: local