-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 984 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
41
42
43
44
45
46
47
48
version: "3.6"
services:
wordpress:
image: wordpress:latest
container_name: mccm-wp
volumes:
- ./wordpress:/var/www/html
environment:
- WORDPRESS_DB_NAME=mccm_db
- WORDPRESS_TABLE_PREFIX=wp_
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=password
- WORDPRESS_DEBUG=1
depends_on:
- db
- phpmyadmin
restart: always
ports:
- 8081:80
db:
image: mariadb:latest
container_name: mccm-db
volumes:
- db_data_wp_6_4_3:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=root
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=mccm_db
restart: always
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin:latest
container_name: mccm-phpmyadmin
restart: always
ports:
- 8181:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password
UPLOAD_LIMIT: 20971520 #20 mb
volumes:
db_data_wp_6_4_3: