mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Fix Chatwoot Schema
This commit is contained in:
@@ -3,7 +3,7 @@ version: '3'
|
||||
x-base-config: &base-config
|
||||
image: chatwoot/chatwoot:v3.14.1
|
||||
volumes:
|
||||
- chatwoot_storage:/app/storage
|
||||
- chatwoot-storage:/app/storage
|
||||
networks:
|
||||
- dokploy-network
|
||||
environment:
|
||||
@@ -25,32 +25,32 @@ x-base-config: &base-config
|
||||
- ACTIVE_STORAGE_SERVICE=${ACTIVE_STORAGE_SERVICE}
|
||||
|
||||
services:
|
||||
rails:
|
||||
chatwoot-rails:
|
||||
<<: *base-config
|
||||
depends_on:
|
||||
postgres:
|
||||
chatwoot-postgres:
|
||||
condition: service_started
|
||||
redis:
|
||||
chatwoot-redis:
|
||||
condition: service_started
|
||||
entrypoint: docker/entrypoints/rails.sh
|
||||
command: ['bundle', 'exec', 'sh', '-c', 'rails db:chatwoot_prepare && rails s -p 3000 -b 0.0.0.0']
|
||||
restart: always
|
||||
|
||||
sidekiq:
|
||||
chatwoot-sidekiq:
|
||||
<<: *base-config
|
||||
depends_on:
|
||||
postgres:
|
||||
chatwoot-postgres:
|
||||
condition: service_started
|
||||
redis:
|
||||
chatwoot-redis:
|
||||
condition: service_started
|
||||
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
|
||||
restart: always
|
||||
|
||||
postgres:
|
||||
chatwoot-postgres:
|
||||
image: postgres:12
|
||||
restart: always
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- chatwoot-postgres-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- dokploy-network
|
||||
environment:
|
||||
@@ -58,11 +58,11 @@ services:
|
||||
- POSTGRES_USER=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
|
||||
redis:
|
||||
chatwoot-redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
- chatwoot-redis-data:/data
|
||||
networks:
|
||||
- dokploy-network
|
||||
|
||||
@@ -71,6 +71,6 @@ networks:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
chatwoot_storage:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
chatwoot-storage:
|
||||
chatwoot-postgres-data:
|
||||
chatwoot-redis-data:
|
||||
@@ -16,7 +16,7 @@ export function generate(schema: Schema): Template {
|
||||
{
|
||||
host: mainDomain,
|
||||
port: 3000,
|
||||
serviceName: "rails",
|
||||
serviceName: "chatwoot-rails",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -29,12 +29,12 @@ export function generate(schema: Schema): Template {
|
||||
`RAILS_LOG_TO_STDOUT=true`,
|
||||
`LOG_LEVEL=info`,
|
||||
`DEFAULT_LOCALE=en`,
|
||||
`POSTGRES_HOST=postgres`,
|
||||
`POSTGRES_HOST=chatwoot-postgres`,
|
||||
`POSTGRES_PORT=5432`,
|
||||
`POSTGRES_DATABASE=chatwoot`,
|
||||
`POSTGRES_USERNAME=postgres`,
|
||||
`POSTGRES_PASSWORD=${postgresPassword}`,
|
||||
`REDIS_URL=redis://redis:6379`,
|
||||
`REDIS_URL=redis://chatwoot-redis:6379`,
|
||||
`ENABLE_ACCOUNT_SIGNUP=false`,
|
||||
`ACTIVE_STORAGE_SERVICE=local`,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user