Files
dpl/integrations/chatwoot/compose.yml
T

61 lines
1.5 KiB
YAML

name: xb-chatwoot
x-app: &app
image: chatwoot/chatwoot:v4.19.1-ce
env_file: .env
environment:
RAILS_ENV: production
NODE_ENV: production
INSTALLATION_ENV: docker
volumes:
- storage:/app/storage
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
services:
rails:
<<: *app
entrypoint: docker/entrypoints/rails.sh
volumes:
- storage:/app/storage
- ./widget-show.html.erb:/app/app/views/widgets/show.html.erb:ro
- ./xb-offline.js:/app/public/xb-offline.js:ro
- ./article-show-plain.html.erb:/app/app/views/public/api/v1/portals/articles/show.html+plain.erb:ro
command: [bundle, exec, rails, s, -p, '3000', -b, 0.0.0.0]
ports:
- '127.0.0.1:8596:3000'
sidekiq:
<<: *app
command: [bundle, exec, sidekiq, -C, config/sidekiq.yml]
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: chatwoot
POSTGRES_USER: chatwoot
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: [CMD-SHELL, 'pg_isready -U chatwoot -d chatwoot']
interval: 5s
timeout: 5s
retries: 30
restart: unless-stopped
redis:
image: redis:7-alpine
command: [redis-server, --appendonly, 'yes']
volumes:
- redis:/data
healthcheck:
test: [CMD, redis-cli, ping]
interval: 5s
timeout: 3s
retries: 30
restart: unless-stopped
volumes:
storage:
postgres:
redis: