-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (63 loc) · 1.72 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
networks:
wpnet:
name: wpnet
volumes:
DB_data:
services:
wp-web:
#image: wordperss:latest
build:
context: ./conf/dockerfiles
dockerfile: Dockerfile.wp
hostname: wordperss
ports:
- ${IP}:${PORT}:80
restart: always
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_NAME: ${DB_NAME}
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: ${DB_ROOT_PASSWORD}
depends_on:
- wp-db
networks:
- wpnet
volumes:
- ./conf/wordpress/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini
- ./wp-app:/var/www/html
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
#- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
wp-db:
image: mariadb
hostname: database
# ports:
# - ${IP}:${DBPORT}:3306
networks:
- wpnet
# command: [
# '--default_authentication_plugin=MARIADB_native_password',
# '--character-set-server=utf8mb4',
# '--collation-server=utf8mb4_unicode_ci'
# ]
volumes:
- ./conf/database/wp-data:/docker-entrypoint-initdb.d
- DB_data:/var/lib/MARIADB
environment:
MARIADB_DATABASE: ${DB_NAME}
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MARIADB_PASSWORD: ${DB_ROOT_PASSWORD}
MARIADB_USER: user
MARIADB_ALLOW_EMPTY_PASSWORD: true
wp-pma:
image: phpmyadmin/phpmyadmin
hostname: pma
environment:
# https://docs.phpmyadmin.net/en/latest/setup.html#docker-environment-variables
PMA_HOST: database
PMA_PORT: 3306
ports:
- ${IP}:${PMAPORT}:80
restart: unless-stopped
networks:
- wpnet