today_ai_weather/compose.yaml
songtianlun b3089856c2 chore: update docker network configuration
- Change network from 'net1' to 'dokploy-network'
- Make 'dokploy-network' an external network
- Update references in multiple services

This update modifies the docker-compose configuration to
utilize an external network named 'dokploy-network' instead
of the previously defined 'net1'. This change is intended
to improve network management and integration with existing
infrastructure.
2025-01-23 10:49:53 +08:00

51 lines
1.1 KiB
YAML

services:
web:
image: songtianlun/today_ai_weather:latest
#ports:
# - "3000:3000"
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://postgres:${PG_PASSWORD}@db:5432/db
- RAILS_MASTER_KEY=${RAILS_MASTER_KEY}
- REDIS_URL=redis://redis:6379/0
networks:
- dokploy-network
depends_on:
- db
- redis
sidekiq:
image: songtianlun/today_ai_weather:latest
command: bundle exec sidekiq
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://postgres:${PG_PASSWORD}@db:5432/db
- RAILS_MASTER_KEY=${RAILS_MASTER_KEY}
- REDIS_URL=redis://redis:6379/0
networks:
- dokploy-network
depends_on:
- db
- redis
db:
image: postgres:16
volumes:
- ../taw_data/pg:/var/lib/postgresql/data
networks:
- dokploy-network
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
- POSTGRES_DB=db
redis:
image: redis:7-alpine
volumes:
- ../taw_data/redis:/data
networks:
- dokploy-network
command: redis-server --appendonly yes
networks:
dokploy-network:
external: true