-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
50 lines (46 loc) · 1.14 KB
/
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
version: '3'
services:
mysql-server:
image: mysql:latest
container_name: 'mysql-server'
environment:
MYSQL_ROOT_PASSWORD: 'root_password'
MYSQL_DATABASE: 'sample_db'
MYSQL_USER: 'sample_user'
MYSQL_PASSWORD: 'sample_password'
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: 'phpmyadmin'
environment:
PMA_ARBITRARY: 1
PMA_USER: 'sample_user'
PMA_PASSWORD: 'sample_password'
PMA_HOST: 'mysql-server'
ports:
- "8080:80"
depends_on:
- mysql-server
mysql-server-test:
image: mysql:latest
container_name: 'mysql-server-test'
environment:
MYSQL_ROOT_PASSWORD: 'root_password'
MYSQL_DATABASE: 'sample_db'
MYSQL_USER: 'sample_user'
MYSQL_PASSWORD: 'sample_password'
ports:
- "3305:3305"
phpmyadminTest:
image: phpmyadmin/phpmyadmin
container_name: 'phpmyadmin-test'
environment:
PMA_ARBITRARY: 1
PMA_USER: 'sample_user'
PMA_PASSWORD: 'sample_password'
PMA_HOST: 'mysql-server-test'
ports:
- "8080:80"
depends_on:
- mysql-server-test