portainer-stacks/webhosting.yaml

42 lines
810 B
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-10-31 03:30:58 +00:00
## Databases
mariadb_webhosting:
image: linuxserver/mariadb
container_name: mariadb_webhosting
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
volumes:
- /webhosting/mariadb:/config
ports:
- 3306:3306
## Sites
2023-10-29 05:40:25 +00:00
ss_website:
container_name: ss_website
image: ss_website
restart: always
2023-10-31 03:30:58 +00:00
#ports:
# - 3000:3000
2023-10-29 05:40:25 +00:00
build:
2023-10-31 03:30:58 +00:00
context: /webhosting/ss_website
2023-10-29 05:40:25 +00:00
dockerfile: Dockerfile
networks:
webhosting:
external: true
name: webhosting