-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
51 lines (48 loc) · 1.27 KB
/
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
services:
db:
image: mariadb:10
volumes:
- ./application:/data
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: world
# MYSQL_DATABASE: employees
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- "8001:80"
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: r00tp@ss!
restore:
build: ./
volumes:
- ./application:/data
# volumes:
# - ./test/world.sql.gz:/tmp/world.sql.gz
# - ./test/employees.sql.gz:/tmp/employees.sql.gz
env_file:
- ./local.env
environment:
MYSQL_HOST: db
MYSQL_USER: root
MYSQL_PASSWORD: r00tp@ss!
DB_NAMES: world #employees
MODE: restore
CRON_SCHEDULE: "* * * * *"
backup:
build: ./
volumes:
- ./application:/data
env_file:
- ./local.env
environment:
MYSQL_HOST: db
MYSQL_USER: root
MYSQL_PASSWORD: r00tp@ss!
DB_NAMES: world #employees
MODE: backup
CRON_SCHEDULE: "* * * * *"