-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (41 loc) · 1.08 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
version: "2"
services:
wordpress:
image: "chriszarate/wordpress:4.8.2"
ports:
- "8000:80"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN}"
WORDPRESS_ACTIVATE_PLUGINS: "woocommerce wc-dl-pl" # plugin folder relative to /wp-content/plugins/
WORDPRESS_ACTIVATE_THEME: "" # theme folder relative to /wp-content/themes/
WORDPRESS_SITE_TITLE: "Project"
WORDPRESS_SITE_URL: "http://${DOCKER_DEV_DOMAIN}"
XDEBUG_CONFIG: "remote_host=${DOCKER_LOCAL_IP} idekey=xdebug"
depends_on:
- "mysql"
networks:
- "front"
- "back"
volumes:
- "./wc-dl-pl:/var/www/html/wp-content/plugins/wc-dl-pl"
mysql:
image: "mariadb:10.2"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
networks:
- "back"
proxy:
image: "jwilder/nginx-proxy:alpine"
ports:
- "80:80"
networks:
front:
aliases:
- "${DOCKER_DEV_DOMAIN}"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
networks:
front: {}
back: {}