-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (107 loc) · 3.02 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.6'
x-wp-plugins: &wp-plugins
- web:$WEB_ROOT
- simple-location:$WORDPRESS_PLUGINS/simple-location
- syndication-links:$WORDPRESS_PLUGINS/syndication-links
- wordpress-indieauth:$WORDPRESS_PLUGINS/wordpress-indieauth
- wordpress-indieweb-press-this:$WORDPRESS_PLUGINS/wordpress-indieweb-press-this
- wordpress-indieweb:$WORDPRESS_PLUGINS/wordpress-indieweb
- wordpress-micropub:$WORDPRESS_PLUGINS/wordpress-micropub
- wordpress-semantic-linkbacks:$WORDPRESS_PLUGINS/wordpress-semantic-linkbacks
- wordpress-webmention:$WORDPRESS_PLUGINS/wordpress-webmention
- indieweb-post-kinds:$WORDPRESS_PLUGINS/indieweb-post-kinds
x-wp-config: &wp-config
WORDPRESS_PATH: ${WEB_ROOT}
WORDPRESS_DB_HOST: "$DATABASE_HOST:$DATABASE_PORT"
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DEBUG: 1
x-local-volume: &local-volume
driver: local
x-local-driver: &local-driver
type: none
o: bind
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
webserver:
build: docker/wordpress-nginx
depends_on:
- wordpress
links:
- wordpress
volumes: *wp-plugins
ports:
- 8000:80
environment:
NGINX_HOST: webserver
NGINX_PORT: 80
WORDPRESS_HOST: phpunit-wordpress
wordpress:
build:
context: docker/wordpress-cli-phpunit-docker
args: *wp-config
depends_on:
- db
links:
- db
restart: always
environment: *wp-config
volumes: *wp-plugins
command: "wait-for ${DATABASE_HOST}:${DATABASE_PORT} -- php-fpm"
volumes:
web: {}
indieweb-post-kinds:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/indieweb-post-kinds
simple-location:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/simple-location
syndication-links:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/syndication-links
wordpress-indieauth:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-indieauth
wordpress-indieweb:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-indieweb
wordpress-indieweb-press-this:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-indieweb-press-this
wordpress-micropub:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-micropub
wordpress-semantic-linkbacks:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-semantic-linkbacks
wordpress-webmention:
<< : *local-volume
driver_opts:
<< : *local-driver
device: ${PWD}/wordpress-webmention