-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 2.09 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
networks:
wcstripe-network:
external: true
volumes:
# Per-worktree volumes (each WP container manages its own copy).
docker_directory:
node_modules:
phpstan_stubs:
release_directory:
# Shared volumes defined in docker-compose.infra.yml.
wcstripe-plugins:
external: true
wcstripe-themes:
external: true
wcstripe-uploads:
external: true
wcstripe-mu-plugins:
external: true
services:
wordpress:
build: ./docker/wordpress_xdebug
image: wcstripe_wp_${WORKTREE_ID:-default}
container_name: wcstripe_wp_${WORKTREE_ID:-default}
restart: unless-stopped
ports:
- "${WORDPRESS_PORT:-8072}:80"
env_file:
- default.env
environment:
- WORKTREE_ID=${WORKTREE_ID:-default}
volumes:
- ./docker/wordpress:/var/www/html/
# Shared wp-content overlays.
- wcstripe-plugins:/var/www/html/wp-content/plugins
- wcstripe-themes:/var/www/html/wp-content/themes
- wcstripe-uploads:/var/www/html/wp-content/uploads
- wcstripe-mu-plugins:/var/www/html/wp-content/mu-plugins
# Per-worktree overlays of the plugin source on top of shared plugins.
- .:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe
- ./tests/phpunit:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/tests/phpunit
- docker_directory:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/docker
- node_modules:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/node_modules
- phpstan_stubs:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/phpstan-stubs
- release_directory:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/release
# Per-worktree logs and PHP ini overlays.
- ./docker/logs/apache2/:/var/log/apache2
- ./docker/logs/php/:/var/log/php
- ./docker/dev-php.ini:/usr/local/etc/php/conf.d/dev-php.ini
- ./docker/override-php-error-logging.ini:/usr/local/etc/php/conf.d/override-php-error-logging.ini
- ./docker/bin:/var/scripts
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- wcstripe-network