-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
57 lines (52 loc) · 1.17 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.3'
services:
varnish:
image: varnish:7.3
container_name: varnish
volumes:
- "./docker/varnish/default.vcl:/etc/varnish/default.vcl"
ports:
- "8081:80"
depends_on:
- "app"
app:
depends_on:
- app_db
build:
context: .
dockerfile: docker/Dockerfile
image: wp-graphql-smart-cache:latest-wp${WP_VERSION}-php${PHP_VERSION}
volumes:
- '.:/var/www/html/wp-content/plugins/wp-graphql-smart-cache'
env_file:
- .env.dist
environment:
USING_XDEBUG: ${USING_XDEBUG:-}
ports:
- '8091:80'
app_db:
image: mariadb:10.11
env_file:
- .env.dist
ports:
- '3306'
testing:
depends_on:
- testing_db
build:
context: .
dockerfile: docker/Dockerfile.testing
image: wp-graphql-smart-cache-testing:latest-wp${WP_VERSION}-php${PHP_VERSION}
volumes:
- '.:/var/www/html/wp-content/plugins/wp-graphql-smart-cache'
env_file:
- .env.testing
environment:
WP_URL: http://localhost
USING_XDEBUG: ${USING_XDEBUG:-}
testing_db:
image: mariadb:10.11
env_file:
- .env.testing
ports:
- '3306'