-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 872 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 872 Bytes
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
services:
db-sync-source:
image: mariadb
container_name: db-sync-source
restart: always
ports:
- 3306:3306
volumes:
- .local/dump.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=db
- MARIADB_USER=dev
- MARIADB_PASSWORD=dev
networks:
- db-sync
db-sync-target:
image: mariadb
container_name: db-sync-target
restart: always
ports:
- 3307:3306
volumes:
- .local/dump-dev.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=db
- MARIADB_USER=dev
- MARIADB_PASSWORD=dev
networks:
- db-sync
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- db-sync
networks:
db-sync: