services: web: build: . ports: - "3000:3000" environment: - RAILS_ENV=production - RAILS_MASTER_KEY=${RAILS_MASTER_KEY} - DATABASE_URL=${DATABASE_URL} - REDIS_URL=${REDIS_URL} - APP_HOST=${APP_HOST} depends_on: - postgres - redis healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/up"] interval: 30s timeout: 10s retries: 3 start_period: 40s sidekiq: build: . command: bundle exec sidekiq -C config/sidekiq.yml environment: - RAILS_ENV=production - RAILS_MASTER_KEY=${RAILS_MASTER_KEY} - DATABASE_URL=${DATABASE_URL} - REDIS_URL=${REDIS_URL} - APP_HOST=${APP_HOST} depends_on: - postgres - redis postgres: image: postgres:16-alpine volumes: - postgres_data:/var/lib/postgresql/data environment: - POSTGRES_USER=envoy - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=envoy_production redis: image: redis:7-alpine volumes: - redis_data:/data volumes: postgres_data: redis_data: