Files
KiloStar/docker-compose.yml
T

34 lines
814 B
YAML

services:
db:
image: postgres:16-alpine
container_name: kilostar_db_test
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: testpass123
POSTGRES_DB: kilostar
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d kilostar"]
interval: 5s
timeout: 5s
retries: 5
kilostar:
build: .
container_name: kilostar_test
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: testpass123
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_DB: kilostar
SECRET_KEY: test-secret-key-not-for-production
KILOSTAR_SECRET_KEY: test-secret-key-not-for-production
KILOSTAR_ENV: dev