/
tenisaname
/
Test_example_docker
Обзор
Документация
Войти
/
tenisaname
/
Test_example_docker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
docker-compose.yml
55 строк
1 KB
etenkin
first_commit
10 июн 2026, 10:41
10 июн 2026, 10:41
85dbc50
Код
Авторство
О чём код?
services: db: image: postgres:17-alpine restart: unless-stopped environment: POSTGRES_USER: spp POSTGRES_PASSWORD: spp POSTGRES_DB: spp volumes: - postgres_data:/var/lib/postgresql/data - ./postgres/init:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U spp -d spp"] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine restart: unless-stopped volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 10 backend: build: ./backend restart: unless-stopped environment: DATABASE_URL: postgresql+asyncpg://spp:spp@db:5432/spp REDIS_URL: redis://redis:6379/0 ports: - "8000:8000" depends_on: db: condition: service_healthy redis: condition: service_healthy frontend: build: ./frontend restart: unless-stopped environment: NEXT_PUBLIC_API_URL: http://backend:8000 ports: - "3000:3000" depends_on: - backend volumes: postgres_data: redis_data: