forked from interferences-at/mpop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (32 loc) · 865 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
# docker-compose.yml for the mpop_service
# See also the Dockerfile
version: '3'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_USER: 'admin'
PMA_PASSWORD: 'secret'
depends_on:
- db
ports:
- "8088:80"
db:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'mpop_database'
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'secret'
TZ: 'America/Toronto'
ports:
# Exporse port 13306 - In case we need it. Just for debugging purposes:
- "13306:3306"
flyway:
image: flyway/flyway
command: -url=jdbc:mysql://db:3306/mpop_database?verifyServerCertificate=false&useSSL=false -user=root -password=secret -connectRetries=60 migrate
volumes:
- ./flyway/sql:/flyway/sql
depends_on:
- db