Jafner.net/homelab/stacks/zipline/docker-compose.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2024-03-10 17:51:47 -07:00
services:
zipline:
image: ghcr.io/diced/zipline:latest
2024-03-10 17:51:47 -07:00
container_name: zipline_zipline
restart: unless-stopped
networks:
- zipline
- web
environment:
MFA_TOTP_ENABLED: true
WEBSITE_SHOW_FILES_PER_USER: true
WEBSITE_TITLE: Jafner.net
CORE_RETURN_HTTPS: true
CORE_HOST: 0.0.0.0
CORE_PORT: 3000
CORE_LOGGER: true
UPLOADER_ASSUME_MIMETYPES: true
DATASOURCE_TYPE: local
DATASOURCE_LOCAL_DIRECTORY: /uploads
UPLOADER_ADMIN_LIMIT: 25gb
UPLOADER_USER_LIMIT: 100mb
2024-10-08 11:55:15 -07:00
env_file:
- zipline.secrets
2024-03-10 17:51:47 -07:00
volumes:
- $DOCKER_DATA/zipline/uploads:/uploads
- $DOCKER_DATA/zipline/public:/public
2024-03-10 17:51:47 -07:00
labels:
- traefik.http.routers.zipline.rule=Host(`zipline.jafner.net`)
- traefik.http.routers.zipline.tls.certresolver=lets-encrypt
- traefik.http.routers.zipline.tls.options=tls12@file
- traefik.http.services.zipline.loadbalancer.server.port=3000
postgres:
image: postgres:latest
2024-03-10 17:51:47 -07:00
container_name: zipline_postgres
restart: unless-stopped
networks:
zipline:
aliases:
- postgres
environment:
POSTGRES_USER: zipline
POSTGRES_DATABASE: zipline
2024-10-08 11:55:15 -07:00
env_file:
postgres.secrets
2024-03-10 17:51:47 -07:00
volumes:
- $DOCKER_DATA/postgres:/var/lib/postgresql/data
healthcheck:
2024-03-10 17:54:12 -07:00
test: ['CMD-SHELL', 'pg_isready -U zipline']
2024-03-10 17:51:47 -07:00
interval: 10s
timeout: 5s
retries: 5
networks:
web:
external: true
2024-10-08 11:55:15 -07:00
zipline: