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