-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
55 lines (51 loc) · 962 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
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: golang-stater
restart: always
links:
- mysql
depends_on:
- mysql
ports:
- 3003:3003
networks:
services-network:
aliases:
- web
mysql:
image: mysql
container_name: mysql_golang_stater
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: golang-stater
ports:
- "3307:3306"
networks:
services-network:
aliases:
- web
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma_golang_stater
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
networks:
services-network:
aliases:
- web
networks:
services-network:
name: services-network
driver: bridge