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
|
||||
47
docker-compose.yml
Normal file
47
docker-compose.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
zinomedia-wordpress:
|
||||
image: wordpress:latest
|
||||
container_name: zinomedia-wordpress
|
||||
restart: on-failure
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: 4netplayers-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:
|
||||
- zinomedia-wordpress-mariadb
|
||||
volumes:
|
||||
- ./volumes/wordpress:/var/www/html
|
||||
networks:
|
||||
- web
|
||||
|
||||
zinomedia-wordpress-mariadb:
|
||||
image: mariadb:latest
|
||||
container_name: zinomedia-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
|
||||
networks:
|
||||
- web
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
name: web
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
file: ./secrets/db_password.txt
|
||||
db_root_password:
|
||||
file: ./secrets/db_root_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 @@
|
||||
JtXAM65YCRG2%TAP
|
||||
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
Reference in New Issue
Block a user