forked from gatsbyjs/gatsby-source-wordpress-experimental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.26 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.8"
services:
db:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: gtsb-wp-dckr
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: gtsb-wp-dckr-user
restart: always
volumes:
- "db_data:/var/lib/mysql"
- "./docker/seed:/docker-entrypoint-initdb.d"
wordpress:
depends_on:
- db
build:
context: ./docker/wordpress
args:
# specify version updates here
# this is for plugins installed via git or tar
WPGRAPHQL_VERSION: v1.0
WPGATSBY_VERSION: v0.6.0
WPGRAPHQL_ACF_VERSION: v0.3.1
WPGRAPHQL_CPT_UI_VERSION: v1.1
ACF_VERSION: 5.8.7
ports:
- "8001:8001"
environment:
WORDPRESS_DB_PASSWORD: gtsb-wp-dckr-user
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DEBUG: 1
restart: always
volumes:
- wp_data:/var/www/html
wordpress-cli:
depends_on:
- db
- wordpress
# Specify versions for wp cli or composer here
environment:
CPT_UI_VERSION: 1.8.1
env_file:
- ./test-site/.env.test
build:
context: ./docker/wp-cli
volumes:
- wp_data:/var/www/html
volumes:
db_data:
wp_data: