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

Use docker networks instead of deprecated --link. #45

Closed
kwerey opened this issue Feb 15, 2018 · 4 comments
Closed

Use docker networks instead of deprecated --link. #45

kwerey opened this issue Feb 15, 2018 · 4 comments

Comments

@kwerey
Copy link
Contributor

kwerey commented Feb 15, 2018

Hi folks,

This is an awesome project!! Thanks for putting it out there.

Some quick feedback on getting the docker image running locally: I had issues getting a link to a postgres container working on Docker for Mac (17.12.0-ce-mac49). It might just be that my VPN setup wasn't playing nice with it, but Docker strongly recommends against link nowadays, and using a shared network is simple and clean to set up.

Instead, I did something along these lines and it worked a treat:

docker network create terranet
docker run --name db \
  -e POSTGRES_USER=gorm \
  -e POSTGRES_DB=gorm \
  -e POSTGRES_PASSWORD="<mypassword>" \
   --net terranet \
  --restart=always postgres -d
docker run -p 8080:8080 \
 -e AWS_REGION="us-east-1" \
 -e AWS_ACCESS_KEY_ID="${ACCESS_KEY_ID}" \
 -e AWS_SECRET_ACCESS_KEY="${ACCESS_KEY}" \
 -e AWS_BUCKET="<bucket>" \
 -e AWS_DYNAMODB_TABLE="<table>" \
 -e DB_PASSWORD="<mypassword>" \
 --net terranet \
 camptocamp/terraboard:latest
@raphink
Copy link
Contributor

raphink commented Feb 15, 2018

Sure thing. The docker-compose file is provided as an example, but I'd certainly welcome a PR to use v2 or v3 and avoid links!

@kwerey
Copy link
Contributor Author

kwerey commented Feb 15, 2018

Sure - I'll see about putting something together one day next week.

@uritau
Copy link
Contributor

uritau commented Nov 14, 2020

I think tht this issue is already solved, it isn't? 🤔

@raphink
Copy link
Contributor

raphink commented Nov 20, 2020

I'll close this now since @uritau fixed it in #124

@raphink raphink closed this as completed Nov 20, 2020
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

3 participants