-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yaml
55 lines (50 loc) · 1.37 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
###
#
# This docker compose file Could be used for quick project bootstrap or even development apps
# uses mysql server with phpMyAdmin administration UI (https://github.com/phpmyadmin/docker).
#
# phpMyAdmin connection configuration (open: http://0.0.0.0/):
#
# server : mysql
# user : root
# password : root-db-password
#
# MySQL connection configuration (per app):
#
# server (from docker): mysql
# server (from local) : 0.0.0.0 or 127.0.0.1 or localhost
# application user : app-db-user
# application password: app-db-password
# application database: app-database
#
###
version: "2.1"
services:
mysql:
image: healthcheck/mysql
ports: ["3306:3306"]
environment:
MYSQL_USER: app-db-user
MYSQL_PASSWORD: app-db-password
MYSQL_DATABASE: app-db-database
MYSQL_ROOT_PASSWORD: root-db-password
networks: [backing-services]
mysql-ui:
image: phpmyadmin/phpmyadmin:4.7
ports: ["80:80"]
environment:
PMA_ARBITRARY: 1
TESTSUITE_PASSWORD: Admin.123
PMA_VERBOSES: mysql
PMA_HOST: mysql
PMA_PORT: 3306
MYSQL_USER: app-db-user
MYSQL_PASSWORD: app-db-password
MYSQL_DATABASE: app-db-database
MYSQL_ROOT_PASSWORD: root-db-password
depends_on: [mysql]
links: ["mysql:db"]
networks: [backing-services]
networks:
backing-services:
driver: bridge