Skip to content

Instantly share code, notes, and snippets.

@ch3pjw
Created February 12, 2016 15:30
Show Gist options
  • Save ch3pjw/a49b45b0506c093abea2 to your computer and use it in GitHub Desktop.
Save ch3pjw/a49b45b0506c093abea2 to your computer and use it in GitHub Desktop.
Convox linked container gets no HOST env var
With the following `docker-compose.yml`:
sonar:
build: ./sonar
environment:
- SONAR_DB_URL
ports:
- 9000
links:
- sonar_db
sonar_db:
image: convox/postgres
ports:
- 5432
Running `env` in the `sonar` container gives me:
SONAR_DB_USERNAME=postgres │
SONAR_DB_SCHEME=postgres │
SONAR_DB_URL=postgres://postgres:password@:5432 │
SONAR_DB_PORT=5432
SONAR_DB_PASSWORD=password
SONAR_DB_HOST=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment