2019-11-23 19:57:39 +00:00
|
|
|
version: '3'
|
2019-12-05 11:12:46 +00:00
|
|
|
|
2019-11-23 19:57:39 +00:00
|
|
|
services:
|
2019-12-22 17:23:18 +00:00
|
|
|
base: &base
|
2019-11-23 19:57:39 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/Dockerfile
|
2019-12-05 11:12:46 +00:00
|
|
|
args:
|
|
|
|
BUNDLE_WITHOUT: ''
|
2019-12-31 12:53:18 +00:00
|
|
|
EXECJS_RUNTIME: 'Node'
|
2019-12-05 11:12:46 +00:00
|
|
|
RAILS_ENV: 'development'
|
|
|
|
RAILS_SERVE_STATIC_FILES: 'false'
|
2019-12-22 17:23:18 +00:00
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
|
|
|
image: chatwoot:development
|
|
|
|
|
|
|
|
rails:
|
|
|
|
<<: *base
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/dockerfiles/rails.Dockerfile
|
|
|
|
image: chatwoot-rails:development
|
2019-11-23 19:57:39 +00:00
|
|
|
volumes:
|
2019-12-22 17:23:18 +00:00
|
|
|
- ./:/app:delegated
|
2019-12-05 11:12:46 +00:00
|
|
|
- node_modules:/app/node_modules
|
2019-12-22 17:23:18 +00:00
|
|
|
- packs:/app/public/packs
|
|
|
|
- cache:/app/tmp/cache
|
|
|
|
depends_on:
|
2019-11-23 19:57:39 +00:00
|
|
|
- postgres
|
|
|
|
- redis
|
2019-12-22 17:23:18 +00:00
|
|
|
- webpack
|
|
|
|
- mailhog
|
2019-11-23 19:57:39 +00:00
|
|
|
ports:
|
2019-12-22 17:23:18 +00:00
|
|
|
- 3000:3000
|
|
|
|
env_file: .env.example
|
2019-11-23 19:57:39 +00:00
|
|
|
environment:
|
2019-12-22 17:23:18 +00:00
|
|
|
- WEBPACKER_DEV_SERVER_HOST=webpack
|
|
|
|
- NODE_ENV=development
|
2019-11-28 18:04:21 +00:00
|
|
|
- RAILS_ENV=development
|
2019-12-22 17:23:18 +00:00
|
|
|
entrypoint: docker/entrypoints/rails.sh
|
2019-12-05 11:12:46 +00:00
|
|
|
command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
|
2019-12-26 16:34:52 +00:00
|
|
|
|
2019-12-22 17:23:18 +00:00
|
|
|
webpack:
|
|
|
|
<<: *base
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/dockerfiles/webpack.Dockerfile
|
|
|
|
image: chatwoot-webpack:development
|
2019-12-05 11:12:46 +00:00
|
|
|
volumes:
|
2019-12-22 17:23:18 +00:00
|
|
|
- ./:/app:delegated
|
|
|
|
- node_modules:/app/node_modules # Node modules shared across containers
|
2019-12-05 11:12:46 +00:00
|
|
|
- packs:/app/public/packs
|
2019-12-22 17:23:18 +00:00
|
|
|
- cache:/app/tmp/cache
|
|
|
|
ports:
|
|
|
|
- "3035" # Webpack dev server
|
|
|
|
env_file: .env.example
|
2019-12-05 11:12:46 +00:00
|
|
|
environment:
|
2019-12-22 17:23:18 +00:00
|
|
|
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
|
|
|
|
- NODE_ENV=development
|
|
|
|
- RAILS_ENV=development
|
|
|
|
entrypoint: docker/entrypoints/webpack.sh
|
|
|
|
command: bin/webpack-dev-server
|
|
|
|
|
2019-11-23 19:57:39 +00:00
|
|
|
postgres:
|
2019-12-26 16:34:52 +00:00
|
|
|
image: postgres:11.6
|
2019-11-23 19:57:39 +00:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
|
|
|
volumes:
|
|
|
|
- postgres:/data/postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=chatwoot
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- redis:/data/redis
|
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
2019-12-22 17:23:18 +00:00
|
|
|
|
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog
|
|
|
|
ports:
|
|
|
|
- 1025:1025
|
|
|
|
- 8025:8025
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|
|
|
|
redis:
|
|
|
|
packs:
|
|
|
|
node_modules:
|
2019-12-26 16:34:52 +00:00
|
|
|
cache:
|