-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.23 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.2"
services:
php:
build: './php/'
networks:
- backend
volumes:
- ./public_html/:/var/www/html/
apache:
build: './apache/'
depends_on:
- php
# - db
networks:
- frontend
- backend
ports:
- "8080:80"
volumes:
- ./public_html/:/var/www/html/
db:
image: mysql:5.7
volumes:
# - ./dump:/docker-entrypoint-initdb.d
- db_data:/var/lib/mysql
restart: always
ports:
- "3306:3306"
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: db
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
phpmyadmin:
image: phpmyadmin/phpmyadmin
networks:
# - frontend
- backend
ports:
- 8181:80
depends_on:
- php
- apache
- db
# environment:
# MYSQL_USERNAME: wordpress
# MYSQL_ROOT_PASSWORD: root
volumes:
db_data:
networks:
frontend:
backend: