-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose_example.yml
55 lines (49 loc) · 1.07 KB
/
docker_compose_example.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'
services:
app:
container_name: GoGround
build: .
ports:
- 8081:8080
restart: on-failure
depends_on:
- goground-mysql
networks:
- goground
goground-mysql:
image: mysql:5.7
container_name: goground_db_mysql
ports:
- 3307:3306
environment:
- MYSQL_ROOT_HOST=${DB_HOST}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
volumes:
- $PWD/database_mysql:/var/lib/mysql
networks:
- goground
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_container
depends_on:
- goground-mysql
environment:
- PMA_HOST=goground-mysql
- PMA_USER=${DB_USER}
- PMA_PORT=${DB_PORT}
- PMA_PASSWORD=${DB_PASSWORD}
ports:
- 9091:80
restart: always
networks:
- goground
volumes:
api:
database_mysql:
# Facilitate communication between containers
networks:
goground:
driver: bridge