This commit is contained in:
zino
2023-12-10 17:13:07 +01:00
parent 8a7093c230
commit 2950113814
6 changed files with 64 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
# Ignore everything in the volume folder
volume/*
# But not the .gitkeep file
!volume/.gitkeep

52
docker-compose.yml Normal file
View File

@@ -0,0 +1,52 @@
version: "3.8"
services:
pokerstarsbotx-wordpress:
image: wordpress:latest
container_name: pokerstarsbotx-wordpress
restart: on-failure
environment:
WORDPRESS_DB_HOST: pokerstarsbotx-wordpress-mariadb
WORDPRESS_DB_USER_FILE: /run/secrets/db_user
WORDPRESS_DB_PASSWORD_FILE: /run/secrets/db_password
WORDPRESS_DB_NAME: wp
WORDPRESS_DEBUG: 1
depends_on:
- pokerstarsbotx-wordpress-mariadb
volumes:
- ./volumes/wordpress:/var/www/html
- ./volumes/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
secrets:
- db_user
- db_password
networks:
- web
pokerstarsbotx-wordpress-mariadb:
image: mariadb:latest
container_name: pokerstarsbotx-wordpress-mariadb
restart: on-failure
environment:
MYSQL_DATABASE: wp
MYSQL_USER_FILE: /run/secrets/db_user
MYSQL_PASSWORD_FILE: /run/secrets/db_password
MYSQL_RANDOM_ROOT_PASSWORD: "1"
MYSQL_LOG_CONSOLE: "true"
TZ: "Europe/Berlin"
volumes:
- ./volumes/db:/var/lib/mysql
secrets:
- db_user
- db_password
networks:
- web
networks:
web:
external: true
name: web
secrets:
db_password:
file: ./secrets/db_password.txt
db_user:
file: ./secrets/db_user.txt

1
secrets/db_password.txt Normal file
View File

@@ -0,0 +1 @@
EK2^5%*7iqe*iZVU

1
secrets/db_user.txt Normal file
View File

@@ -0,0 +1 @@
zino

0
volumes/.gitkeep Normal file
View File

5
volumes/uploads.ini Normal file
View File

@@ -0,0 +1,5 @@
file_uploads = On
memory_limit = 256M
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300