From c89ef43f37dd81f09536c40a46dbed5e39dd550e Mon Sep 17 00:00:00 2001 From: erangel1 Date: Mon, 25 May 2026 22:12:02 +0000 Subject: [PATCH] Add docker-compose.yaml --- docker-compose.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..ef112d2 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,47 @@ +services: + anchor: + image: ghcr.io/zhfahim/anchor:latest + container_name: anchor + restart: unless-stopped + # ports: + # - "3000:3000" + networks: + - homelab + environment: + PG_PORT: 5432 + PG_USER: anchor + PG_PASSWORD: anchor + PG_DATABASE: anchor + APP_URL: https://anchor.asgardlabs.net + volumes: + - anchor_data:/data + depends_on: + anchor-db: + condition: service_healthy + + anchor-db: + image: postgres:18 + restart: unless-stopped + environment: + POSTGRES_DB: anchor + POSTGRES_USER: anchor + POSTGRES_PASSWORD: anchor + ports: + - "5432:5432" + networks: + - homelab + volumes: + - anchor_db_data:/var/lib/postgresql + healthcheck: + test: ["CMD-SHELL", "pg_isready -U anchor"] + interval: 5s + timeout: 5s + retries: 10 + +volumes: + anchor_data: + anchor_db_data: + +networks: + homelab: + external: true \ No newline at end of file