name: wordpress services: reverse-proxy: container_name: reverse-proxy image: hackeamos/httpd build: context: './docker/nginx' depends_on: - app volumes: - webroot:/var/www/html environment: WORDPRESS_SITEURL: ${WPSTACK_PROTOCOL}://${WPSTACK_DOMAIN}/${WPSTACK_URLPATH:-} WORDPRESS_SITE_TYPE: ${WPSTACK_MULTISITE:-regular} labels: caddy: ${WPSTACK_DOMAIN} caddy.reverse_proxy: "reverse-proxy:80" caddy.tls: "internal" networks: - app-network - proxy-network app: container_name: app image: hackeamos/wp build: context: './docker/wordpress' volumes: - webroot:/var/www/html - ./app/themes:/var/www/html/wp-content/themes - ./app/plugins:/var/www/html/wp-content/plugins - ./app/mu-plugins:/var/www/html/wp-content/mu-plugins environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: ${DB_USER} WORDPRESS_DB_NAME: ${DB_NAME} WORDPRESS_DB_PASSWORD: ${DB_PASS} WORDPRESS_SITEURL: ${WPSTACK_PROTOCOL}://${WPSTACK_DOMAIN}/${WPSTACK_URLPATH:-} WORDPRESS_BLOGNAME: ${WPSTACK_BLOGNAME:-} WORDPRESS_ADMIN_USER: ${WPSTACK_ADMIN_USER:-admin} WORDPRESS_ADMIN_EMAIL: ${WPSTACK_ADMIN_EMAIL} WORDPRESS_MULTISITE: ${WPSTACK_MULTISITE:-} # '' (default), subdomain or path SMTP_HOST: ${SMTP_HOST:-} SMTP_PORT: ${SMTP_PORT:-} SMTP_USER: ${SMTP_USER:-} SMTP_PASS: ${SMTP_PASS:-} SMTP_AUTH: ${SMTP_AUTH:-} SMTP_TLS: ${SMTP_TLS:-} networks: - app-network - proxy-network db: container_name: db image: mariadb environment: MARIADB_RANDOM_ROOT_PASSWORD: true MARIADB_USER: ${DB_USER} MARIADB_PASSWORD: ${DB_PASS} MARIADB_DATABASE: ${DB_NAME} networks: - app-network - proxy-network volumes: webroot: networks: app-network: proxy-network: external: true