8ea74a21b0
* Fix docker file to use rails_env=production on precompile * Fix docker file for prod deployment
45 lines
827 B
YAML
45 lines
827 B
YAML
version: '3'
|
|
services:
|
|
|
|
server: &server
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/Dockerfile
|
|
volumes:
|
|
- ./:/app
|
|
links:
|
|
- postgres
|
|
- redis
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- REDIS_URL=redis://redis:6379
|
|
- POSTGRES_HOST=postgres
|
|
- RAILS_ENV=development
|
|
command: ["foreman", "start", "-f", "./docker/Procfile.docker.dev"]
|
|
|
|
postgres:
|
|
image: postgres:9.6
|
|
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'
|
|
|
|
volumes:
|
|
postgres:
|
|
external: true
|
|
redis:
|
|
external: true
|