Repository navigation
Expand file tree
/
Copy pathdocker-compose.wordpress-local-https.yml
More file actions
65 lines (61 loc) · 2.18 KB
/
Copy pathdocker-compose.wordpress-local-https.yml
File metadata and controls
65 lines (61 loc) · 2.18 KB
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
name: galaxyquest-wordpress-local
# Independent project: never combine with docker-compose.yml or use shared service names.
services:
private-storage:
profiles: [wordpress-local-https]
image: galaxyquest-wordpress-local-https
pull_policy: never
user: "0:0"
network_mode: none
restart: "no"
entrypoint: ["/bin/sh", "-ec"]
command:
- |
for directory in /var/lib/gq-inspection /var/lib/gq-local-tls /var/lib/gq-local-config; do
test ! -L "$$directory"
mkdir -p "$$directory"
chown www-data:www-data "$$directory"
chmod 0700 "$$directory"
done
volumes:
- inspection-profiles:/var/lib/gq-inspection
- local-tls:/var/lib/gq-local-tls
- local-config:/var/lib/gq-local-config
wordpress-https:
profiles: [wordpress-local-https]
build:
context: .
dockerfile: docker/wordpress-local-https/Dockerfile
image: galaxyquest-wordpress-local-https
restart: unless-stopped
depends_on:
private-storage:
condition: service_completed_successfully
ports:
- "127.0.0.1:8443:8443"
networks:
- local-wordpress-database
volumes:
- ./wordpress:/var/www/html/wordpress:ro
- ./wordpress/wp-config.php:/run/gq-source/wp-config.php:ro
- ./docker/wordpress-local-https/wp-config.php:/var/www/html/wordpress/wp-config.php:ro
- ./wordpress-integration/gq-game-admin.php:/var/www/html/wordpress/wp-content/plugins/gq-game-admin.php:ro
- ./wordpress-integration/gq-github-plugin-updater.php:/var/www/html/wordpress/wp-content/plugins/gq-github-plugin-updater.php:ro
- ./wordpress-integration/gq-admin-tables.php:/var/www/html/wordpress/wp-content/plugins/gq-admin-tables.php:ro
- inspection-profiles:/var/lib/gq-inspection
- local-tls:/var/lib/gq-local-tls
- local-config:/var/lib/gq-local-config
healthcheck:
test: ["CMD", "php", "/usr/local/lib/gq-local-https/healthcheck.php"]
interval: 10s
timeout: 5s
start_period: 15s
retries: 6
networks:
local-wordpress-database:
external: true
name: galaxyquest_default
volumes:
inspection-profiles:
local-tls:
local-config: