Files
backend/docker-compose.yml
T
Ali Reza bb59d5e9ba Initial commit: Meshkee CMS API
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
2026-07-21 17:52:36 +03:30

39 lines
1.0 KiB
YAML

services:
postgres:
image: postgres:16-alpine
container_name: meshkee-postgres
restart: unless-stopped
ports:
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-meshkee}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-meshkee_secret}
POSTGRES_DB: ${POSTGRES_DB:-meshkee_cms}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-meshkee} -d ${POSTGRES_DB:-meshkee_cms}"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: meshkee-redis
restart: unless-stopped
ports:
- "127.0.0.1:${REDIS_PORT:-6379}:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
redis_data: