-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
42 lines (38 loc) · 938 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
version: "2"
services:
wordpress:
image: "chriszarate/wordpress:4.9.1"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN}"
WORDPRESS_ACTIVATE_PLUGINS: "papercite"
WORDPRESS_SITE_TITLE: "Papercite test"
WORDPRESS_SITE_URL: "http://${DOCKER_DEV_DOMAIN}"
XDEBUG_CONFIG: "remote_host=${DOCKER_LOCAL_IP} idekey=xdebug"
depends_on:
- "mysql"
networks:
- "front"
- "back"
volumes:
- ".:/var/www/html/wp-content/plugins/papercite"
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: {}