forked from the-events-calendar/ql-events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 loc) · 1.49 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
58
59
60
61
62
version: '3.3'
services:
app:
depends_on:
- app_db
image: "kidunot89/ql-events-app:wp${WP_VERSION:-5.2.2}-php${PHP_VERSION:-7.3}"
volumes:
- '.:/var/www/html/wp-content/plugins/ql-events'
- '../wp-graphql-woocommerce:/var/www/html/wp-content/plugins/wp-graphql-woocommerce'
- './.log/app:/var/log/apache2'
env_file: .env.dist
environment:
WP_URL: 'http://localhost:8091'
WP_DOMAIN: 'localhost:8091'
DB_HOST: app_db
INCLUDE_WPGRAPHIQL: 1
IMPORT_WC_PRODUCTS: 1
ports:
- '8091:80'
networks:
local:
app_db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
ports:
- '3306'
networks:
testing:
local:
testing:
depends_on:
- app_db
build:
context: .
dockerfile: Dockerfile
args:
DESIRED_PHP_VERSION: "${PHP_VERSION:-7.3}"
DESIRED_WP_VERSION: "${WP_VERSION:-5.2}"
image: woographql-testing
volumes:
- '.:/var/www/html/wp-content/plugins/ql-events'
- '../wp-graphql-woocommerce:/var/www/html/wp-content/plugins/wp-graphql-woocommerce:ro'
- './.log/testing:/var/log/apache2'
env_file: .env.dist
environment:
WPGRAPHQL_WOOCOMMERCE_AUTOLOAD: 1
DB_HOST: app_db
WP_URL: 'http://localhost'
WP_DOMAIN: 'localhost'
networks:
testing:
networks:
local:
testing: