2019-12-22 17:23:18 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
base: &base
|
2020-07-24 18:04:09 +00:00
|
|
|
image: chatwoot/chatwoot:latest
|
2020-02-24 19:53:29 +00:00
|
|
|
env_file: .env ## Change this file for customized env variables
|
2021-09-07 14:22:14 +00:00
|
|
|
volumes:
|
|
|
|
- /data/storage:/app/storage
|
2019-12-22 17:23:18 +00:00
|
|
|
|
|
|
|
rails:
|
|
|
|
<<: *base
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
ports:
|
2021-11-11 09:13:25 +00:00
|
|
|
- '127.0.0.1:3000:3000'
|
2019-12-22 17:23:18 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
- RAILS_ENV=production
|
2021-08-16 18:05:00 +00:00
|
|
|
- INSTALLATION_ENV=docker
|
2019-12-22 17:23:18 +00:00
|
|
|
entrypoint: docker/entrypoints/rails.sh
|
2020-02-24 19:53:29 +00:00
|
|
|
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
|
|
|
|
|
|
|
|
sidekiq:
|
|
|
|
<<: *base
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
- RAILS_ENV=production
|
2021-08-16 18:05:00 +00:00
|
|
|
- INSTALLATION_ENV=docker
|
2020-02-24 19:53:29 +00:00
|
|
|
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
|
2019-12-22 17:23:18 +00:00
|
|
|
|
|
|
|
postgres:
|
2020-07-14 06:06:31 +00:00
|
|
|
image: postgres:12
|
2019-12-22 17:23:18 +00:00
|
|
|
restart: always
|
|
|
|
ports:
|
2021-11-11 09:13:25 +00:00
|
|
|
- '127.0.0.1:5432:5432'
|
2019-12-22 17:23:18 +00:00
|
|
|
volumes:
|
2020-07-24 18:04:09 +00:00
|
|
|
- /data/postgres:/var/lib/postgresql/data
|
2019-12-22 17:23:18 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=chatwoot
|
|
|
|
- POSTGRES_USER=postgres
|
2020-07-24 18:04:09 +00:00
|
|
|
# Please provide your own password.
|
2019-12-22 17:23:18 +00:00
|
|
|
- POSTGRES_PASSWORD=
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
2021-05-21 13:25:42 +00:00
|
|
|
command: ["sh", "-c", "redis-server --requirepass \"$REDIS_PASSWORD\""]
|
|
|
|
env_file: .env
|
2019-12-22 17:23:18 +00:00
|
|
|
volumes:
|
2020-07-24 18:04:09 +00:00
|
|
|
- /data/redis:/data
|
2019-12-22 17:23:18 +00:00
|
|
|
ports:
|
2021-11-11 09:13:25 +00:00
|
|
|
- '127.0.0.1:6379:6379'
|