/
seypher
/
benchmark
Обзор
Документация
Войти
/
seypher
/
benchmark
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
spec-kit/docker-compose.yml
47 строк
1 KB
dorshanskiy
first_commit
19 май 2026, 18:09
19 май 2026, 18:09
5d12ee6
Код
Авторство
О чём код?
services: db: image: postgres:16-alpine environment: POSTGRES_USER: urlshortener POSTGRES_PASSWORD: urlshortener POSTGRES_DB: urlshortener ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U urlshortener"] interval: 5s timeout: 5s retries: 5 migrate: image: postgres:16-alpine depends_on: db: condition: service_healthy volumes: - ./internal/store/migrations:/migrations:ro entrypoint: ["psql", "postgres://urlshortener:urlshortener@db:5432/urlshortener?sslmode=disable", "-f", "/migrations/001_create_short_links.sql"] restart: "no" api: build: context: . dockerfile: Dockerfile depends_on: db: condition: service_healthy migrate: condition: service_completed_successfully environment: DATABASE_URL: postgres://urlshortener:urlshortener@db:5432/urlshortener?sslmode=disable PORT: 8080 BASE_URL: http://localhost:8080 ports: - "8080:8080" restart: unless-stopped volumes: postgres_data: