-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (53 loc) · 1.08 KB
/
docker-compose.yaml
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
55
56
version: '3'
networks:
migration_tools:
# external: true
services:
go:
container_name: mt_app_go
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/code
stdin_open: true
tty: true
ports:
- "8080:8080"
networks:
- migration_tools
# external_links:
# - migrate/migrate:4
# migrate:
# image: migrate/migrate:4
# volumes:
# - .:/code
# networks:
# - migration_tools
mysql:
container_name: mt_app_mysql
image: mysql:8.0.29
volumes:
- ./docker/mysql:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_USER=adib
- MYSQL_PASSWORD=sarirejo
- MYSQL_ROOT_PASSWORD=sarirejo
- MYSQL_DATABASE=migration_tools
restart: unless-stopped
networks:
- migration_tools
pma:
container_name: mt_app_pma
image: phpmyadmin:5.1.3
ports:
- "8083:80"
environment:
MYSQL_ROOT_PASSWORD: sarirejo
PMA_HOST: mysql
PMA_USER: adib
PMA_PASSWORD: sarirejo
networks:
- migration_tools