today_ai_weather/compose.yaml
songtianlun 97d7930daa chore: update redis data volume path
- Changed Redis data volume path from '../daw_data/redis' to '../taw_data/redis'.

This update reflects a restructuring in the project directory for better
data organization and may require corresponding adjustments in other
configuration files to ensure data consistency.
2025-01-23 10:13:45 +08:00

41 lines
913 B
YAML

version: '3.8'
services:
web:
image: songtianlun/today_ai_weather:latest
ports:
- "2222:3000"
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://postgres:xxx@db:5432/db
- RAILS_MASTER_KEY=xxx
- REDIS_URL=redis://redis:6379/0
depends_on:
- db
- redis
sidekiq:
image: songtianlun/today_ai_weather:latest
command: bundle exec sidekiq
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://postgres:xxx@db:5432/db
- RAILS_MASTER_KEY=xxx
- REDIS_URL=redis://redis:6379/0
depends_on:
- db
- redis
db:
image: postgres:16
volumes:
- ../taw_data/pg:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=xxx
- POSTGRES_DB=db
redis:
image: redis:7-alpine
volumes:
- ../taw_data/redis:/data
command: redis-server --appendonly yes