Neah/docker-compose.yml
2025-04-27 13:39:05 +02:00

27 lines
507 B
YAML

version: '3.8'
services:
db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendar_db
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:latest
command: redis-server --requirepass mySecretPassword
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
volumes:
db:
driver: local
redis_data: