| 123456789101112131415161718192021222324252627282930313233343536 |
- services:
- postgres:
- image: postgres:16-alpine
- container_name: dotouch-postgres
- restart: unless-stopped
- environment:
- POSTGRES_USER: dotouch
- POSTGRES_PASSWORD: dotouch
- POSTGRES_DB: dotouch
- ports:
- - "5432:5432"
- volumes:
- - pgdata:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U dotouch -d dotouch"]
- interval: 10s
- timeout: 5s
- retries: 5
- redis:
- image: redis:7-alpine
- container_name: dotouch-redis
- restart: unless-stopped
- ports:
- - "6379:6379"
- volumes:
- - redisdata:/data
- healthcheck:
- test: ["CMD", "redis-cli", "ping"]
- interval: 10s
- timeout: 5s
- retries: 5
- volumes:
- pgdata:
- redisdata:
|