From ae35c9c0e4f71ddf280bd297c42f04f2c0ce3838 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 10 Mar 2024 17:51:47 -0700 Subject: [PATCH] #123 Init Zipline --- fighter/config/zipline/.env | 1 + fighter/config/zipline/docker-compose.yml | 48 +++++++++++++++++++++++ fighter/config/zipline/postgres.env | 2 + fighter/config/zipline/zipline.env | 7 ++++ 4 files changed, 58 insertions(+) create mode 100644 fighter/config/zipline/.env create mode 100644 fighter/config/zipline/docker-compose.yml create mode 100644 fighter/config/zipline/postgres.env create mode 100644 fighter/config/zipline/zipline.env diff --git a/fighter/config/zipline/.env b/fighter/config/zipline/.env new file mode 100644 index 0000000..9b5fb74 --- /dev/null +++ b/fighter/config/zipline/.env @@ -0,0 +1 @@ +DOCKER_DATA=/mnt/nas/iscsi/zipline \ No newline at end of file diff --git a/fighter/config/zipline/docker-compose.yml b/fighter/config/zipline/docker-compose.yml new file mode 100644 index 0000000..9ec3104 --- /dev/null +++ b/fighter/config/zipline/docker-compose.yml @@ -0,0 +1,48 @@ +version: '3.9' +services: + zipline: + image: ghcr.io/diced/zipline + container_name: zipline_zipline + restart: unless-stopped + networks: + - zipline + - web + env_file: + - path: ./zipline.env + required: true + - path: ./zipline_secrets.env + required: false + volumes: + - $DOCKER_DATA/zipline:/uploads + 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.routers.zipline.middlewares=securityheaders@file + - traefik.http.services.zipline.loadbalancer.server.port=3000 + + postgres: + image: postgres:15 + container_name: zipline_postgres + restart: unless-stopped + networks: + zipline: + aliases: + - postgres + env_file: + - path: ./postgres.env + required: true + - path: ./postgres_secrets.env + required: false + volumes: + - $DOCKER_DATA/postgres:/var/lib/postgresql/data + healthcheck: + test: ['CMD-SHELL', 'pg_isready -U postgres'] + interval: 10s + timeout: 5s + retries: 5 + +networks: + web: + external: true + zipline: diff --git a/fighter/config/zipline/postgres.env b/fighter/config/zipline/postgres.env new file mode 100644 index 0000000..251d19a --- /dev/null +++ b/fighter/config/zipline/postgres.env @@ -0,0 +1,2 @@ +POSTGRES_USER=zipline +POSTGRES_DATABASE=zipline \ No newline at end of file diff --git a/fighter/config/zipline/zipline.env b/fighter/config/zipline/zipline.env new file mode 100644 index 0000000..30f0e11 --- /dev/null +++ b/fighter/config/zipline/zipline.env @@ -0,0 +1,7 @@ +MFA_TOTP_ENABLED=true +WEBSITE_SHOW_FILES_PER_USER=true +WEBSITE_TITLE=Jafner.net +CORE_RETURN_HTTPS=false +CORE_HOST=0.0.0.0 +CORE_PORT=3000 +CORE_LOGGER=true