Files
go-fishing/compose.yml
T

33 lines
937 B
YAML
Raw Normal View History

2026-09-15 09:15:53 -05:00
services:
server:
image: git.hat.fish/jaron/go-fishing:latest
restart: always
depends_on:
db:
condition: service_healthy
environment:
COOKIE_STORE_SECRET: ${COOKIE_STORE_SECRET}
DB_CONNECTION_STRING: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
2026-09-16 09:30:29 -05:00
ENV: ${ENV}
2026-09-15 09:15:53 -05:00
ports:
- "22:22"
- "9900:9900"
db:
image: postgres:18-alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres_data: