-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.07 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
version: "3.8"
services:
app:
image: marcortola/php-fpm-nginx-wordpress:7.4
restart: on-failure
ports:
- '10000:80'
volumes:
- wp_content:/var/www/wp-content
environment:
- WP_DB_NAME=secret
- WP_DB_USER=secret
- WP_DB_PASSWORD=secret
- WP_DB_HOST=localhost
app_subdir:
image: marcortola/php-fpm-nginx-wordpress:7.4
working_dir: /var/www/subdir
restart: on-failure
ports:
- '10001:80'
volumes:
- wp_content:/var/www/subdir/wp-content
environment:
- WP_DB_NAME=secret
- WP_DB_USER=secret
- WP_DB_PASSWORD=secret
- WP_DB_HOST=localhost
app_dev:
image: marcortola/php-fpm-nginx-wordpress:7.4-debug
restart: on-failure
ports:
- '10002:80'
volumes:
- wp_content:/var/www/wp-content
environment:
- XDEBUG_MODE=${XDEBUG_MODE:-debug}
- WP_DB_NAME=secret
- WP_DB_USER=secret
- WP_DB_PASSWORD=secret
- WP_DB_HOST=localhost
extra_hosts:
- host.docker.internal:host-gateway
volumes:
wp_content: