T
Twenty3d ago
Zou

help with building

i used this to build the docker : docker build -f packages/twenty-docker/twenty/Dockerfile -t twenty-standard:latest . , and it builds just fine. however when I tried to run the image it gives connection error to db
No description
4 Replies
Zou
ZouOP3d ago
pg seems to run properly, no errors
No description
Zou
ZouOP3d ago
is this the right way to build?
Zou
ZouOP3d ago
dockercompose.yml
Zou
ZouOP9h ago
#PG_DATABASE_USER=postgres #PG_DATABASE_PASSWORD=replace_me_with_a_strong_password_without_special_characters #PG_DATABASE_HOST=db #PG_DATABASE_PORT=5432 #REDIS_URL=redis://redis:6379 SERVER_URL=http://localhost:3000 SIGN_IN_PREFILLED=false STORAGE_TYPE=local APP_SECRET=5GV+qszN6It7e4YNTMBUPbrqi4NfkXv09paXusq8RCU= PG_DATABASE_PASSWORD=pgpass123 the issue is fixed, turns out when building it uses the local setup's env and baked it into the container, so modifying env in the same directory with dockercompose basically overrides it. i just add this to dockerignore : packages/*/.env, and rebuilt.

Did you find this page helpful?