m
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal 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
52
docker-compose.yml
Normal 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
1
secrets/db_password.txt
Normal file
@@ -0,0 +1 @@
|
||||
EK2^5%*7iqe*iZVU
|
||||
1
secrets/db_user.txt
Normal file
1
secrets/db_user.txt
Normal file
@@ -0,0 +1 @@
|
||||
zino
|
||||
0
volumes/.gitkeep
Normal file
0
volumes/.gitkeep
Normal file
5
volumes/uploads.ini
Normal file
5
volumes/uploads.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
file_uploads = On
|
||||
memory_limit = 256M
|
||||
upload_max_filesize = 128M
|
||||
post_max_size = 128M
|
||||
max_execution_time = 300
|
||||
Reference in New Issue
Block a user