-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (37 loc) · 1.03 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
services:
wp:
image: ${SITE_IMAGE}
restart: on-failure
depends_on:
- db_test
volumes:
- ./:/var/www/workspace
- html_volume:/var/www/html
- vscode_server_volume:/root/.vscode-server
environment:
SITE_ADMIN_EMAIL: ${SITE_ADMIN_EMAIL}
SITE_ADMIN_PASS: ${SITE_ADMIN_PASS}
SITE_ADMIN_USER: ${SITE_ADMIN_USER}
SITE_HOST: ${SITE_HOST}
SITE_PORT: ${SITE_PORT}
SITE_TITLE: ${SITE_TITLE}
# WordPress test installation variables in Docker
WP_DB_TEST_HOST: ${DB_TEST_HOST}
WP_DB_TEST_NAME: ${DB_TEST_NAME}
WP_DB_TEST_PASS: ${DB_TEST_PASS}
WP_DB_TEST_USER: ${DB_TEST_USER}
db_test:
image: ${DB_IMAGE}
ports:
- ${DB_TEST_PORT_PUBLISHED}:3306
volumes:
- db_test_volume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_TEST_ROOT_PASS}
MYSQL_DATABASE: ${DB_TEST_NAME}
MYSQL_USER: ${DB_TEST_USER}
MYSQL_PASSWORD: ${DB_TEST_PASS}
volumes:
db_test_volume:
html_volume:
vscode_server_volume: