-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on docs - Unable to use docker-compose to build self-hosted app. #1767
Comments
Hey @leonballoni I am bit confused from your statement. .env.example The link you have shared is the right one. I am getting the values from there and also the curl command is working correct. I just tested it out. The issue is your REDIS_URL is localhost. It should be your docker compose redis service name. If your using Infisical unmodified docker compose file then its |
@akhilmhdh Thank you for replying. I believe that the curl path must have been fixed in the last few weeks. I`m going to remake my steps and check if I missed anything and forgot to reply here. Thanks! |
Closing as stale now. |
Morning, Trying to setup self-hosted service using docker-compose. While preparing the environment, there is a error when fetching with curl or wget the .env.example from github.
.env_file: 404: Not Found -> curl -o .env_test https://raw.githubusercontent.com/Infisical/infisical/main/.env.example
Whilst that occurred I searched along the documentation for the proper envs and used the following as a test:
.env
`
REDIS_URL=redis://localhost:6379
DB_CONNECTION_URI=postgres://infisical:infisical@localhost/infisical?sslmode=disable
AUTH_SECRET=4bnfe4e407b8921c104518903515b218
ENCRYPTION_KEY=4bnfe4e407b8921c104518903515b218
POSTGRES_USER=infisical
POSTGRES_PASSWORD=infisical
POSTGRES_DB=infisical
`
Receiving the following error when trying to access the db:
Thereafter I tried to change the compose script at db to directly define environments fro POSTGRES_* (USER, PASSWORD and DB) and got the same errors.
Also tried changing the DB_CONNECTION_URI to:
DB_CONNECTION_URI=postgres://infisical:infisical@localhost/infisical?sslmode=disable
or
DB_CONNECTION_URI=postgres://infisical:[email protected]/infisical?sslmode=disable
or
DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
or
DB_CONNECTION_URI=postgres://infisical:infisical@infisical-db/infisical?sslmode=disable
Please, could you help me out to fix the issue? Is there any .envs lacking or wrong?
Thanks
Files:
infisical-docker-compose-files.zip
Path: /self-hosting/deployment-options/docker-compose
The text was updated successfully, but these errors were encountered: