35 lines
806 B
YAML
35 lines
806 B
YAML
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
POSTGRES_DB: nomadcode
|
|
POSTGRES_USER: nomadcode
|
|
POSTGRES_PASSWORD: nomadcode
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U nomadcode -d nomadcode"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
nomadcode-core:
|
|
build: .
|
|
environment:
|
|
APP_ENV: local
|
|
HTTP_ADDR: :8080
|
|
DATABASE_URL: postgres://nomadcode:nomadcode@postgres:5432/nomadcode?sslmode=disable
|
|
MATTERMOST_BASE_URL: ""
|
|
MATTERMOST_TOKEN: ""
|
|
PLANE_BASE_URL: ""
|
|
PLANE_TOKEN: ""
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
postgres-data:
|