Uranium
Uranium
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
No description
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
coolify tell me my worker is (unhealthy) but when i run docker ps my worker is healthy...
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
but coolify will always cause problems I don't know why and it's annoying that you always have to debug.
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
you can test and go to http://ipofserver:3000/ if this is not work replace localhost by ip of server
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
yes but instance is on your desktop or VPS ?
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
i remove it
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
hmm
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
Impossible my first test is without GMAIL and GOOGLE and works...
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
just remove variables you don't need
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
can you try this ? this is my own docker compose and works for me.
version: '3.7'
name: twenty
services:
server:
image: 'twentycrm/twenty:${TAG}'
volumes:
- 'server-local-data:/app/packages/twenty-server/$${STORAGE_LOCAL_PATH:-.local-storage}'
- 'docker-data:/app/docker-data'
ports:
- '3000:3000'
environment:
- PORT=3000
- 'PG_DATABASE_URL=postgres://twenty:twenty@${PG_DATABASE_HOST}/default'
- 'SERVER_URL=${SERVER_URL}'
- 'IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}'
- 'FRONT_BASE_URL=${FRONT_BASE_URL:-$SERVER_URL}'
- 'MESSAGE_QUEUE_TYPE=${MESSAGE_QUEUE_TYPE}'
- ENABLE_DB_MIGRATIONS=true
- 'STORAGE_TYPE=${STORAGE_TYPE}'
- 'ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}'
- 'LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}'
- 'REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}'
- 'FILE_TOKEN_SECRET=${FILE_TOKEN_SECRET}'
depends_on:
db:
condition: service_healthy
healthcheck:
test: 'curl --fail http://localhost:3000/healthz'
interval: 5s
timeout: 5s
retries: 10
restart: always
worker:
image: 'twentycrm/twenty:${TAG}'
command:
- yarn
- 'worker:prod'
environment:
- 'PG_DATABASE_URL=postgres://twenty:twenty@${PG_DATABASE_HOST}/default'
- 'SERVER_URL=${SERVER_URL}'
- 'IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}'
- 'FRONT_BASE_URL=${FRONT_BASE_URL:-$SERVER_URL}'
- 'MESSAGE_QUEUE_TYPE=${MESSAGE_QUEUE_TYPE}'
- ENABLE_DB_MIGRATIONS=false
- 'STORAGE_TYPE=${STORAGE_TYPE}'
- 'ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}'
- 'LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}'
- 'REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}'
- 'FILE_TOKEN_SECRET=${FILE_TOKEN_SECRET}'
depends_on:
db:
condition: service_healthy
server:
condition: service_healthy
restart: always
db:
image: 'twentycrm/twenty-postgres:${TAG}'
volumes:
- 'db-data:/bitnami/postgresql'
environment:
- 'POSTGRES_PASSWORD=${POSTGRES_ADMIN_PASSWORD}'
healthcheck:
test: 'pg_isready -U twenty -d default'
interval: 5s
timeout: 5s
retries: 10
restart: always
volumes:
docker-data: { }
db-data: { }
server-local-data: { }
version: '3.7'
name: twenty
services:
server:
image: 'twentycrm/twenty:${TAG}'
volumes:
- 'server-local-data:/app/packages/twenty-server/$${STORAGE_LOCAL_PATH:-.local-storage}'
- 'docker-data:/app/docker-data'
ports:
- '3000:3000'
environment:
- PORT=3000
- 'PG_DATABASE_URL=postgres://twenty:twenty@${PG_DATABASE_HOST}/default'
- 'SERVER_URL=${SERVER_URL}'
- 'IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}'
- 'FRONT_BASE_URL=${FRONT_BASE_URL:-$SERVER_URL}'
- 'MESSAGE_QUEUE_TYPE=${MESSAGE_QUEUE_TYPE}'
- ENABLE_DB_MIGRATIONS=true
- 'STORAGE_TYPE=${STORAGE_TYPE}'
- 'ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}'
- 'LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}'
- 'REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}'
- 'FILE_TOKEN_SECRET=${FILE_TOKEN_SECRET}'
depends_on:
db:
condition: service_healthy
healthcheck:
test: 'curl --fail http://localhost:3000/healthz'
interval: 5s
timeout: 5s
retries: 10
restart: always
worker:
image: 'twentycrm/twenty:${TAG}'
command:
- yarn
- 'worker:prod'
environment:
- 'PG_DATABASE_URL=postgres://twenty:twenty@${PG_DATABASE_HOST}/default'
- 'SERVER_URL=${SERVER_URL}'
- 'IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}'
- 'FRONT_BASE_URL=${FRONT_BASE_URL:-$SERVER_URL}'
- 'MESSAGE_QUEUE_TYPE=${MESSAGE_QUEUE_TYPE}'
- ENABLE_DB_MIGRATIONS=false
- 'STORAGE_TYPE=${STORAGE_TYPE}'
- 'ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}'
- 'LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}'
- 'REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}'
- 'FILE_TOKEN_SECRET=${FILE_TOKEN_SECRET}'
depends_on:
db:
condition: service_healthy
server:
condition: service_healthy
restart: always
db:
image: 'twentycrm/twenty-postgres:${TAG}'
volumes:
- 'db-data:/bitnami/postgresql'
environment:
- 'POSTGRES_PASSWORD=${POSTGRES_ADMIN_PASSWORD}'
healthcheck:
test: 'pg_isready -U twenty -d default'
interval: 5s
timeout: 5s
retries: 10
restart: always
volumes:
docker-data: { }
db-data: { }
server-local-data: { }
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
oh yes because the container is not start.
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
what is error ?
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
okok
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
but VPS is not the problem idk...
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
not aws just VPS, OS: Debian 12 24G RAM 6 cores
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
and if i do no replace by this 2 lines - 'server-local-data:/app/packages/twenty-server/$${STORAGE_LOCAL_PATH:-.local-storage}' - 'docker-data:/app/docker-data' this is not work
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
No description
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
look i have the sam error
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
I'll try your docker compose on my coolify instance
61 replies
TTwenty
Created by Uranium on 6/24/2024 in #❓︱help
Error 404 after commands
No, I don't particularly see any issues. However, the variable ${STORAGE_LOCAL_PATH:-.local-storage} didn't work for me, even with special character escaping disabled. I had to replace it with $${STORAGE_LOCAL_PATH:-.local-storage}. Yet, in the rest of the docker-compose file, it works fine. Nevertheless, Coolify still replaces certain lines, especially for the change-vol-ownership part, where the characters are always escaped, which prevents the container from starting.
61 replies