portainer-stacks/ss_webhosting.yaml

61 lines
1.5 KiB
YAML

version: '3.9'
services:
## Zero Trust Tunnel
cloudflare-webhosting:
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=$TUNNEL_TOKEN
## Database / Database Management
mariadb_webhosting:
image: linuxserver/mariadb
container_name: mariadb_webhosting
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
volumes:
- /ss_webhosting/mariadb:/config
phpmyadmin_webhosting:
image: phpmyadmin
container_name: phpmyadmin_webhosting
restart: unless-stopped
depends_on:
- mariadb_webhosting
environment:
- PMA_HOST=mariadb_webhosting
- PMA_PORT=3306
## Sites
simplysyncedllc_website:
image: gitea.dex/dex/simplysyncedllc_website:latest
container_name: ss_website
restart: always
environment:
- NEXT_PUBLIC_SENDGRID_API_KEY=$NEXT_PUBLIC_SENDGRID_API_KEY
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY=$NEXT_PUBLIC_RECAPTCHA_SITE_KEY
- NEXT_PUBLIC_RECAPTCHA_SECRET_KEY=$NEXT_PUBLIC_RECAPTCHA_SECRET_KEY
phlares_website:
image: wordpress
container_name: phlares_website
restart: always
environment:
WORDPRESS_DB_HOST: mariadb_webhosting
WORDPRESS_DB_USER: phlares
WORDPRESS_DB_PASSWORD: $PHLARES_DB_PASS
WORDPRESS_DB_NAME: phlares
volumes:
- /ss_webhosting/phlares_website:/var/www/html
networks:
default:
name: dockers_default
external: true