Add docker-compose.yaml
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user