81 lines
1.9 KiB
YAML
81 lines
1.9 KiB
YAML
version: "3.3"
|
|
|
|
services:
|
|
snikket_proxy:
|
|
container_name: snikket-proxy
|
|
image: snikket/snikket-web-proxy:stable
|
|
env_file: snikket.conf
|
|
network_mode: host
|
|
volumes:
|
|
- snikket_data:/snikket
|
|
- acme_challenges:/var/www/html/.well-known/acme-challenge
|
|
restart: "unless-stopped"
|
|
depends_on:
|
|
- snikket_server
|
|
|
|
snikket_certs:
|
|
container_name: snikket-certs
|
|
image: snikket/snikket-cert-manager:stable
|
|
env_file: snikket.conf
|
|
network_mode: host
|
|
volumes:
|
|
- snikket_data:/snikket
|
|
- acme_challenges:/var/www/.well-known/acme-challenge
|
|
restart: "unless-stopped"
|
|
|
|
snikket_portal:
|
|
container_name: snikket-portal
|
|
image: snikket/snikket-web-portal:stable
|
|
env_file: snikket.conf
|
|
network_mode: host
|
|
restart: "unless-stopped"
|
|
depends_on:
|
|
- snikket_server
|
|
|
|
snikket_server:
|
|
container_name: snikket
|
|
image: snikket/snikket-server:stable
|
|
env_file:
|
|
- snikket.conf
|
|
- secrets.env
|
|
network_mode: host
|
|
volumes:
|
|
- snikket_data:/snikket
|
|
- ./prosody.cfg.lua:/etc/prosody/conf.d/custom.cfg.lua:ro
|
|
restart: "unless-stopped"
|
|
depends_on:
|
|
- postgres
|
|
- s3_upload_handler
|
|
|
|
s3_upload_handler:
|
|
container_name: snikket-s3-upload
|
|
build: ./s3-upload-handler
|
|
network_mode: host
|
|
env_file:
|
|
- secrets.env
|
|
environment:
|
|
S3_BUCKET: "your-snikket-uploads-bucket"
|
|
S3_REGION: "us-east-1"
|
|
# For MinIO or other S3-compatible storage, uncomment:
|
|
# S3_ENDPOINT: "http://127.0.0.1:9000"
|
|
PRESIGN_EXPIRE: "3600"
|
|
restart: "unless-stopped"
|
|
|
|
postgres:
|
|
container_name: snikket-postgres
|
|
image: postgres:15
|
|
env_file:
|
|
- secrets.env
|
|
environment:
|
|
POSTGRES_DB: snikket
|
|
POSTGRES_USER: snikket
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
network_mode: host
|
|
restart: "unless-stopped"
|
|
|
|
volumes:
|
|
acme_challenges:
|
|
snikket_data:
|
|
postgres_data:
|