portainer-stacks/ss_webhosting.yaml

57 lines
1.3 KiB
YAML
Raw Normal View History

2023-10-29 05:40:25 +00:00
version: '3.9'
services:
2023-10-31 03:34:09 +00:00
2023-10-31 03:30:58 +00:00
## Zero Trust Tunnel
2023-10-29 05:40:25 +00:00
cloudflare-webhosting:
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=$TUNNEL_TOKEN
2023-11-11 04:48:57 +00:00
## Database / Database Management
2023-10-31 03:30:58 +00:00
mariadb_webhosting:
image: linuxserver/mariadb
container_name: mariadb_webhosting
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
volumes:
2023-11-11 04:57:21 +00:00
- /ss_webhosting/mariadb:/config
2023-10-31 03:30:58 +00:00
ports:
- 3306:3306
2023-11-11 04:48:57 +00:00
phpmyadmin_webhosting:
image: phpmyadmin
container_name: phpmyadmin
restart: unless-stopped
depends_on:
- mariadb_webhosting
environment:
- PMA_HOST=mariadb_webhosting
- PMA_PORT=3306
2023-10-31 03:30:58 +00:00
## Sites
2023-11-11 04:48:57 +00:00
simplysyncedllc_website:
image: gitea.dex/dex/simplysyncedllc_website:latest
2023-10-29 05:40:25 +00:00
container_name: ss_website
restart: always
2023-11-11 04:48:57 +00:00
phlares_website:
image: wordpress
restart: always
environment:
WORDPRESS_DB_HOST: mariadb_webhosting
WORDPRESS_DB_USER: phlares
2023-11-11 04:55:07 +00:00
WORDPRESS_DB_PASSWORD: $PHLARES_DB_PASS
2023-11-11 04:48:57 +00:00
WORDPRESS_DB_NAME: phlares
volumes:
2023-11-11 04:57:21 +00:00
- /ss_webhosting:/var/www/html
2023-10-29 05:40:25 +00:00
networks:
webhosting:
external: true
name: webhosting