47 lines
938 B
YAML
47 lines
938 B
YAML
services:
|
|
anchor:
|
|
image: ghcr.io/zhfahim/anchor:0.11.1
|
|
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 |