This commit is contained in:
2025-11-30 12:34:45 +01:00
parent e5f390ad42
commit 13e6dd903a
125 changed files with 5482 additions and 28 deletions

2
__swarm/wordpress/.env Executable file
View File

@@ -0,0 +1,2 @@
APPNAME=wordpress
DOCKER_REGISTRY=r.sectorq.eu/library/

View File

@@ -0,0 +1,47 @@
services:
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
image: ${DOCKER_REGISTRY:-}mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: always
secrets:
- wordpress_db_password
- wordpress_root_db_password
environment:
# - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/wordpress_root_db_password
- MYSQL_ROOT_PASSWORD=wordpress
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD_FILE=/run/secrets/wordpress_db_password
#- MYSQL_PASSWORD=wordpress
- MYSQL_HOST=%
expose:
- 3306
- 33060
wordpress:
image: ${DOCKER_REGISTRY:-}wordpress:latest
volumes:
- wp_data:/var/www/html
ports:
- 8098:80
restart: always
secrets:
- wordpress_db_password
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD_FILE=/run/secrets/wordpress_db_password
#- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_DB_NAME=wordpress
volumes:
db_data:
wp_data:
secrets:
wordpress_db_password:
external: true
wordpress_root_db_password:
external: true

0
__swarm/wordpress/stack.env Executable file
View File