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

divio-cli ignores docker-compose.override.yml #181

Open
stefanfoulis opened this issue Feb 22, 2017 · 0 comments
Open

divio-cli ignores docker-compose.override.yml #181

stefanfoulis opened this issue Feb 22, 2017 · 0 comments

Comments

@stefanfoulis
Copy link
Contributor

The default behaviour of docker-compose is to override anything in the default docker-compose.yml file with the values from docker-compose.override.yml.
https://docs.docker.com/compose/extends/#/understanding-multiple-compose-files

divio cli seems to ignore the override file.

In my case I override the db container to expose the postgres port on localhost in docker-compose.override.yml. Every time I run a command from divio-cli that uses the db container, it shuts it down and restarts it without the exposed port.

example docker-compose.yml:

version: "2"

services:
  web:
    build: .
    ports:
      - "8000:80"
    volumes:
      - ".:/app:rw"
    links:
      - "db:postgres"
    command: python manage.py runserver 0.0.0.0:80
    env_file: .env-local

  db:
    image: postgres:9.4
    volumes:
      - ".:/app:rw"
    environment:
      POSTGRES_DB: "db"

example docker-compose.override.yml:

version: "2"
services:
  db:
    ports:
      - "5432:5432"
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