Skip to content

Docker Compose - Potter Migration Depends on Thor_DB #32

@commitBlob

Description

@commitBlob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions