Skip to content
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

Dockerfile & docker compose not working as expected. #92

Open
7adidaz opened this issue Feb 11, 2024 · 0 comments
Open

Dockerfile & docker compose not working as expected. #92

7adidaz opened this issue Feb 11, 2024 · 0 comments

Comments

@7adidaz
Copy link

7adidaz commented Feb 11, 2024

I'm trying to run the docker compose up to utilize docker for easier development time. Still, I ran into the example container not being able to connect to the postgres container, checking the env variables related to postgres in docker-compose.yaml. I saw both POSTGRES_PASSWORD being different from the one present in the Postgres link in config.toml, it should be edited from:

Another edit is the following in the Dockerfile:

  • "RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o /bin/api-binary ./cmd/example/main.go"
  • "RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o /bin/api-binary ./cmd/main.go"

I was gonna open a PR but it still refuses to connect to postgres container, please investigate this and thanks for this amazing boilerplate:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant