Files
Solo_bot/docker-compose.local.yml
T

38 lines
880 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: solobot-postgres
restart: unless-stopped
environment:
POSTGRES_DB: solobot
POSTGRES_USER: myuser
POSTGRES_PASSWORD: "6901"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myuser -d solobot"]
interval: 5s
timeout: 5s
retries: 20
redis:
image: redis:7-alpine
container_name: solobot-redis
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes", "--maxmemory", "256mb", "--maxmemory-policy", "allkeys-lru"]
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
volumes:
postgres_data:
redis_data: