trinka / docker-compose.db.yml
yashgori20's picture
phase 1
cbc03d1
raw
history blame contribute delete
743 Bytes
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: trinka_postgres
environment:
POSTGRES_USER: trinka
POSTGRES_PASSWORD: trinka
POSTGRES_DB: trinka_db
ports:
- "5432:5432"
volumes:
- trinka_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U trinka"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: trinka_redis
ports:
- "6379:6379"
volumes:
- trinka_redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
trinka_postgres_data:
trinka_redis_data: