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

Docker Compose - Potter Migration Depends on Thor_DB #32

Open
commitBlob opened this issue Nov 6, 2020 · 0 comments
Open

Docker Compose - Potter Migration Depends on Thor_DB #32

commitBlob opened this issue Nov 6, 2020 · 0 comments

Comments

@commitBlob
Copy link

Looking at the docker-compose file I noticed that potter_migration depends on thor_db.
I'm assuming this is not intentional and it should rather depend on the potter_db?

  potter_db:
    image: postgres
    environment:
      - POSTGRES_PASSWORD=potter
      - POSTGRES_USER=potter
      - POSTGRES_DB=potter
  potter_web:
    image: agiliq/multi-tenant-demo
    command: python3 manage.py runserver 0.0.0.0:8000
    volumes:
      - .:/code
    depends_on:
      - potter_db
    environment:
      - DATABASE_URL=postgres://potter:potter@potter_db/potter

  potter_migration:
    image: agiliq/multi-tenant-demo
    command: python3 manage.py migrate
    volumes:
      - .:/code
    depends_on:
      - thor_db <---- should be potter_db?
    environment:
      - DATABASE_URL=postgres://potter:potter@potter_db/potter

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