Dateien hochladen nach „wordpress“

This commit is contained in:
sporada 2021-03-25 14:45:24 +01:00
parent 66ed1f76d9
commit 4116f9fc1d
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,46 @@
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
wordpress:
env_file: live.env
image: wordpress
container_name: wordpress-app
restart: unless-stopped
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.enable=true"
### <https> ###
- "traefik.http.routers.wordpress.entrypoints=websecure"
#- "traefik.http.routers.wordpress.middlewares=hsts-header@file"
- "traefik.http.routers.wordpress.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.wordpress.tls=true"
- "traefik.http.routers.wordpress.tls.certresolver=myresolver"
#- "traefik.http.routers.wordpress.tls.options=intermediate@file"
### </https> ###
networks:
- default
volumes:
- ${WORDPRESS_ROOT}/data/wordpress/usr/local/etc/php/conf.d/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ${WORDPRESS_ROOT}/data/wordpress/var/www/html:/var/www/html
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
db:
env_file: live.env
image: mysql:5.7
restart: unless-stopped
container_name: wordpress-db
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
networks:
- default
volumes:
- ${WORDPRESS_ROOT}/db/var/lib/mysql:/var/lib/mysql

15
wordpress/live.env.tpl Normal file
View File

@ -0,0 +1,15 @@
# Domain
DOMAIN=domain.com
# Wordpress
WORDPRESS_ROOT=/home/compute/services/wordpress
WORDPRESS_DB_HOST=db
WORDPRESS_DB_USER=username
WORDPRESS_DB_PASSWORD=password_db
WORDPRESS_DB_NAME=wordpress
# DB
MYSQL_DATABASE=wordpress
MYSQL_USER=username
MYSQL_PASSWORD=password_db
MYSQL_RANDOM_ROOT_PASSWORD=password_db_root