-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 1.46 KB
/
docker-compose.yaml
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
version: "3.3"
services:
wordpress:
platform: linux/x86_64
image: docker.io/presslabs/wordpress-runtime:latest-wp-php-8.1
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
depends_on:
- db
- memcached
volumes:
- ./config:/app/config
- ./wp-content:/app/web/wp-content:rw
- ./.dev/wp-config-docker.php:/app/web/wp-config.php:rw
- ./.dev/php.ini:/usr/local/etc/php/conf.d/zz-local.ini
ports:
- "8080:8080"
restart: always
tmpfs:
- /usr/local/docker/etc:uid=${USER_ID:-1000},gid=${GROUP_ID:-1000}
- /var/run:uid=${USER_ID:-1000},gid=${GROUP_ID:-1000}
environment:
WP_ENVIRONMENT_TYPE: development
DB_HOST: db:3306
DB_USER: wordpress
DB_PASSWORD: not-so-secure
DB_NAME: wordpress
MEMCACHED_HOST: memcached:11211
PHP_REQUEST_TIMEOUT: 300
WORKER_GROUP: ${USER_ID:-1000}
WORKER_USER: ${GROUP_ID:-1000}
## Proxy all missing media files from local to remote site for easy development.
# STACK_MEDIA_FALLBACK_URL: https://<parent domain name>
db:
platform: linux/x86_64
image: percona:8.0
volumes:
- db_data:/var/lib/mysql
- ./.dev/my.cnf:/etc/my.cnf.d/my.cnf
restart: always
environment:
MYSQL_ROOT_PASSWORD: not-so-secure
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: not-so-secure
memcached:
platform: linux/x86_64
image: memcached:1.6
volumes:
db_data: {}