-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
47 lines (44 loc) · 997 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
services:
wordpress:
build:
context: ./.docker
args:
WP_VERSION: ${WP_VERSION}
PHP_VERSION: ${PHP_VERSION}
image: ${PLUGIN_SLUG}:latest-wp${WP_VERSION}-php${PHP_VERSION}
restart: always
ports:
- "8890:80"
environment:
WP_VERSION: ${WP_VERSION}
PHP_VERSION: ${PHP_VERSION}
env_file:
- .env
user: root
depends_on:
- mysql
volumes:
- wordpress_data:/var/www/html
- ./:/var/www/html/wp-content/plugins/${PLUGIN_SLUG}
networks:
- plugin_network
mysql:
image: mariadb:10
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: ${WORDPRESS_DB_PASSWORD}
MYSQL_USER: ${WORDPRESS_DB_USER}
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD}
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
volumes:
- db:/var/lib/mysql
networks:
- plugin_network
networks:
plugin_network:
driver: bridge
volumes:
wordpress_data:
db: