From 9cb284700e4209e726ae4b0cf1894467d2850464 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 13 Dec 2022 17:44:26 -0800 Subject: [PATCH] Init VanDAM --- homelab/server/config/vandam/.env | 1 + .../server/config/vandam/docker-compose.yml | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 homelab/server/config/vandam/.env create mode 100644 homelab/server/config/vandam/docker-compose.yml diff --git a/homelab/server/config/vandam/.env b/homelab/server/config/vandam/.env new file mode 100644 index 00000000..59db2a88 --- /dev/null +++ b/homelab/server/config/vandam/.env @@ -0,0 +1 @@ +STL_DIR="/mnt/nas/media/3D Printing/Model Library/Test Library" \ No newline at end of file diff --git a/homelab/server/config/vandam/docker-compose.yml b/homelab/server/config/vandam/docker-compose.yml new file mode 100644 index 00000000..4e4d7d1f --- /dev/null +++ b/homelab/server/config/vandam/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3" + +services: + vandam: + image: ghcr.io/floppy/van_dam:latest + container_name: vandam_vandam + env_file: + - vandam_secrets.env + ports: + - 3214:3214 + volumes: + - ${STL_DIR}:/libraries + environment: + DATABASE_URL: postgresql://van_dam:password@db/van_dam?pool=5 + depends_on: + - db + - redis + + db: + image: postgres:13 + container_name: vandam_postgres + env_file: + - db_secrets.env + volumes: + - db_data:/var/lib/postgresql/data + + redis: + image: redis:6 + container_name: vandam_redis + +volumes: + db_data: \ No newline at end of file