-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
41 lines (37 loc) · 974 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
version: "3.1"
services:
web:
image: php:5.6.40-apache
ports:
- "80:80"
- "443:443"
volumes:
- ./app:/var/www/html
networks:
- default
db:
image: mysql:5.7
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: example
MYSQL_USER: admin
MYSQL_PASSWORD: 123456
MYSQL_ROOT_PASSWORD: 123456
volumes:
- ./dump:/docker-entrypoint-initdb.d
- ./conf:/etc/mysql/conf.d
- ./persistent:/var/lib/mysql
networks:
- default
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- 8000:80
environment:
MYSQL_USER: admin
MYSQL_PASSWORD: 123456
MYSQL_ROOT_PASSWORD: 123456