init docker setup

This commit is contained in:
root
2026-04-22 23:07:01 +02:00
commit 6332774b88
24 changed files with 13209 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
services:
wordpress_td-haider:
image: wordpress:latest
container_name: wordpress_laserscan-haider
restart: unless-stopped
environment:
WORDPRESS_DB_HOST: mariadb:3306
WORDPRESS_DB_USER: ${MYSQL_USER:?MYSQL_USER not set}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD:?MYSQL_PASSWORD not set}
WORDPRESS_DB_NAME: ${MYSQL_DATABASE:?MYSQL_DATABASE not set}
volumes:
- wordpress_laserscan-haider:/var/www/html
- ./php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- traefik-network
- mariadb
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-network"
# Router Hauptdomain
- "traefik.http.routers.wp_laserscanhaider.rule=Host(`laserscan-haider.at`)"
- "traefik.http.routers.wp_laserscanhaider.entrypoints=websecure"
- "traefik.http.routers.wp_laserscanhaider.tls=true"
- "traefik.http.routers.wp_laserscanhaider.tls.certresolver=cloudflare"
- "traefik.http.services.wp_laserscanhaider.loadbalancer.server.port=80"
# Router www → Middleware
- "traefik.http.routers.wp_laserscanhaider_www.rule=Host(`www.laserscan-haider.at`)"
- "traefik.http.routers.wp_laserscanhaider_www.entrypoints=websecure"
- "traefik.http.routers.wp_laserscanhaider_www.tls=true"
- "traefik.http.routers.wp_laserscanhaider_www.tls.certresolver=cloudflare"
- "traefik.http.routers.wp_laserscanhaider_www.middlewares=wp-redirect-www"
networks:
traefik-network:
external: true
mariadb:
external: true
volumes:
wordpress_laserscan-haider:
external: true