-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon-services.yml
More file actions
51 lines (49 loc) · 1.82 KB
/
common-services.yml
File metadata and controls
51 lines (49 loc) · 1.82 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
services:
wordpress:
image: ghcr.io/librecodecoop/wordpress-docker:latest
# build:
# context: .docker/wordpress
# args:
# VERSION_WORDPRESS: ${VERSION_WORDPRESS:-6.9}
# VERSION_PHP: ${VERSION_PHP:-8.3}
restart: unless-stopped
volumes:
- ./volumes/wordpress:/var/www/html
environment:
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST:-mariadb}
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME:-wordpress}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER:-root}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD:-root}
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX:-wp_}
- WORDPRESS_SETUP_CONFIG_YAML=${WORDPRESS_SETUP_CONFIG_YAML:-}
- WORDPRESS_LOCAL_USERS_PASSWORD=${WORDPRESS_LOCAL_USERS_PASSWORD:-}
- WORDPRESS_LOCAL_RESET_ALL_USERS_PASSWORDS=${WORDPRESS_LOCAL_RESET_ALL_USERS_PASSWORDS:-0}
- WORDPRESS_LOCAL_RESET_PASSWORD_FOR_USER=${WORDPRESS_LOCAL_RESET_PASSWORD_FOR_USER:-}
- XDEBUG_CONFIG=${XDEBUG_CONFIG:-client_host=host.docker.internal start_with_request=yes}
- XDEBUG_MODE=${XDEBUG_MODE:-off}
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
image: nginx
restart: unless-stopped
volumes:
- ./volumes/wordpress:/var/www/html:ro
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d/
environment:
- DEFAULT_HOST
- VIRTUAL_HOST
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
mariadb:
build:
context: .docker/mariadb
volumes:
- ./volumes/mariadb/dump:/docker-entrypoint-initdb.d
- ./volumes/mariadb/data:/var/lib/mysql
restart: always
environment:
- TZ=${TZ:-America/Sao_Paulo}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-root}
- MARIADB_DATABASE=${MARIADB_DATABASE:-wordpress}