portainer-stacks/ss_webhosting.yaml

57 lines
1.3 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
ports:
- 3306:3306
phpmyadmin_webhosting:
image: phpmyadmin
container_name: phpmyadmin
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
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:/var/www/html
networks:
webhosting:
external: true
name: webhosting