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