services: wordpress: container_name: blog-wp image: wordpress:6.6.1-php8.1-apache restart: always networks: - proxynet env_file: - /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env labels: - "traefik.enable=true" - "traefik.http.routers.wordpress.rule=Host(`${SERVER_DOMAIN}`)" environment: WORDPRESS_DB_HOST: mariadb WORDPRESS_DB_USER: ${MARIADB_USER} WORDPRESS_DB_NAME: ${MARIADB_DB} volumes: - /data/appdata/wordpress:/var/www/html networks: proxynet: external: true