portainer-stacks/ss_webhosting.yaml

68 lines
1.6 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
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
draftpro_website:
image: wordpress
container_name: draftpro_website
restart: always
environment:
WORDPRESS_DB_HOST: mariadb_webhosting
WORDPRESS_DB_USER: draftpro
WORDPRESS_DB_PASSWORD: $DRAFTPRO_DB_PASS
WORDPRESS_DB_NAME: draftpro
volumes:
- /ss_webhosting/draftpro_website:/var/www/html
networks:
default:
name: dockers_default
external: true