29 lines
633 B
YAML
29 lines
633 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: miniapp-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: miniapp
|
|
POSTGRES_USER: miniapp
|
|
POSTGRES_PASSWORD: miniapp_dev_password
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- miniapp-postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U miniapp -d miniapp"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: miniapp-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6380:6379"
|
|
|
|
volumes:
|
|
miniapp-postgres-data:
|