chore(docker): Update production compose for custom build and port 3001

- Switch from official chatwoot image to custom build (includes LeadMail, translations, branding)
- Change Rails port from 3001 to avoid conflict with Gitea on 3000
- Use environment variable for POSTGRES_PASSWORD instead of empty default
This commit is contained in:
netlas
2026-04-21 23:27:32 +03:00
parent 52988dea5b
commit 93951cc9a8

View File

@@ -2,7 +2,9 @@ version: '3'
services:
base: &base
image: chatwoot/chatwoot:latest
build:
context: .
dockerfile: docker/Dockerfile
env_file: .env ## Change this file for customized env variables
volumes:
- storage_data:/app/storage
@@ -13,7 +15,7 @@ services:
- postgres
- redis
ports:
- '127.0.0.1:3000:3000'
- '127.0.0.1:3001:3000'
environment:
- NODE_ENV=production
- RAILS_ENV=production
@@ -44,8 +46,7 @@ services:
environment:
- POSTGRES_DB=chatwoot
- POSTGRES_USER=postgres
# Please provide your own password.
- POSTGRES_PASSWORD=
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
redis:
image: redis:alpine