54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
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
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: ["redis-server", "--appendonly", "yes"]
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
volumes:
|
|
- redis-data:/data
|
|
|
|
nomadcode-core:
|
|
build: .
|
|
environment:
|
|
APP_ENV: local
|
|
HTTP_ADDR: :8080
|
|
DATABASE_URL: postgres://nomadcode:nomadcode@postgres:5432/nomadcode?sslmode=disable
|
|
REDIS_URL: redis://redis:6379/0
|
|
AUTH_USERNAME: ${AUTH_USERNAME:-nomadcode}
|
|
AUTH_PASSWORD: ${AUTH_PASSWORD:-}
|
|
MATTERMOST_BASE_URL: ""
|
|
MATTERMOST_TOKEN: ""
|
|
PLANE_BASE_URL: ""
|
|
PLANE_TOKEN: ""
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
postgres-data:
|
|
redis-data:
|