Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- # Thor
- thor_db:
- image: postgres
- environment:
- - POSTGRES_PASSWORD=thor
- - POSTGRES_USER=thor
- - POSTGRES_DB=thor
- thor_web:
- image: multi-tenant
- command: python3 manage.py runserver 0.0.0.0:8000
- volumes:
- - .:/code
- depends_on:
- - thor_db
- environment:
- - DATABASE_URL=postgres://thor:thor@thor_db/thor
- thor_migration:
- image: multi-tenant
- command: python3 manage.py migrate
- volumes:
- - .:/code
- depends_on:
- - thor_db
- environment:
- - DATABASE_URL=postgres://thor:thor@thor_db/thor
- # -------------------------------------------------------------------------------------------------------------------
- # Potter
- potter_db:
- image: postgres
- environment:
- - POSTGRES_PASSWORD=potter
- - POSTGRES_USER=potter
- - POSTGRES_DB=potter
- potter_web:
- image: multi-tenant
- 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: multi-tenant
- command: python3 manage.py migrate
- volumes:
- - .:/code
- depends_on:
- - thor_db
- environment:
- - DATABASE_URL=postgres://potter:potter@potter_db/potter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement