fix: switch to dev settings for Docker services and improve env config
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m41s
CI/CD Pipeline / Run Tests (push) Failing after 1m47s
CI/CD Pipeline / Build & Push Images (push) Successful in 2m12s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Successful in 49s

This commit is contained in:
2026-02-10 19:44:56 +01:00
parent beec622b75
commit c217b62100
12 changed files with 226 additions and 376 deletions

View File

@@ -0,0 +1,34 @@
services:
db:
image: postgres:15.10
container_name: db
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-mostovik}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
volumes:
- ./data/db:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:7-alpine
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3