Files
leadchat/docker-compose.production.yaml
netlas 0c8278d277
Some checks failed
Lock Threads / action (push) Has been cancelled
chore: update production compose to use pre-built image, keep build version for reference
2026-04-22 14:01:12 +03:00

63 lines
1.4 KiB
YAML

version: '3'
services:
rails:
image: git.leadmagnet.dev/leadmagnet/leadchat:latest
depends_on:
- postgres
- redis
ports:
- '127.0.0.1:3001:3000'
env_file: .env
environment:
- NODE_ENV=production
- RAILS_ENV=production
- INSTALLATION_ENV=docker
volumes:
- storage_data:/app/storage
entrypoint: docker/entrypoints/rails.sh
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
restart: always
sidekiq:
image: git.leadmagnet.dev/leadmagnet/leadchat:latest
depends_on:
- postgres
- redis
env_file: .env
environment:
- NODE_ENV=production
- RAILS_ENV=production
- INSTALLATION_ENV=docker
volumes:
- storage_data:/app/storage
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
restart: always
postgres:
image: pgvector/pgvector:pg16
restart: always
ports:
- '127.0.0.1:5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=chatwoot
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
redis:
image: redis:alpine
restart: always
command: ["sh", "-c", "redis-server --requirepass \"$REDIS_PASSWORD\""]
env_file: .env
volumes:
- redis_data:/data
ports:
- '127.0.0.1:6380:6379'
volumes:
storage_data:
postgres_data:
redis_data: