-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 861 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 861 Bytes
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
version: '3'
services:
php-service:
build: ./php
volumes:
- ./php/app:/var/www/html
ports:
- 5000:80
links:
- db-service
depends_on:
- db-service
db-service:
image: mysql:5.7
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
command:
--default-authentication-plugin=mysql_native_password
restart:
"always"
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 5001:80
restart:
"always"
depends_on:
- db-service
environment:
- PMA_HOST=db-service
- MYSQL_ROOT_PASSWORD=rootpassword