forked from WordPress/wordcamp.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
32 lines (31 loc) · 1.06 KB
/
docker-compose.yaml
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
version: "3.2"
services:
wordcamp.test:
build:
context: .docker
dockerfile: Dockerfile.php-fpm
volumes:
- "./public_html:/usr/src/public_html"
- ".docker/bin:/var/scripts"
- ".docker/data:/usr/src/data"
- ".docker/wp-config.php:/usr/src/public_html/wp-config.php"
- ".docker/wp-cli.yml:/usr/src/public_html/wp-cli.yml"
- ".docker/config/nginx.conf:/etc/nginx/sites-enabled/default"
- ".docker/config/php-fpm.conf:/usr/local/etc/php-fpm.d/zz-www.conf"
ports:
- "80:80"
- "443:443"
- "1080:1080"
environment:
- IS_LOCAL_DEV=1
- WP_CLI_ALLOW_ROOT=true
wordcamp.db:
build:
context: .docker
dockerfile: Dockerfile.mysql
volumes:
- ".docker/database:/var/lib/mysql"
- ".docker/bin:/var/scripts"
ports:
# todo document that 3307 to avoid conflicts w/ host mysql server?
- "3307:3306"