| 123456789101112131415161718192021222324252627282930313233 |
- version: '3.8'
- services:
- postgres:
- image: postgres:16-alpine
- environment:
- POSTGRES_DB: weather_bot
- POSTGRES_USER: bot
- POSTGRES_PASSWORD: botpass
- volumes:
- - pgdata:/var/lib/postgresql/data
- ports:
- - '5432:5432'
- healthcheck:
- test: ['CMD-SHELL', 'pg_isready -U bot -d weather_bot']
- interval: 10s
- timeout: 5s
- retries: 5
- redis:
- image: redis:7-alpine
- ports:
- - '6379:6379'
- volumes:
- - redisdata:/data
- healthcheck:
- test: ['CMD', 'redis-cli', 'ping']
- interval: 10s
- timeout: 5s
- retries: 5
- volumes:
- pgdata:
- redisdata:
|