Building multi-tenant application with using database "shared" pattern.
- Avoid multiple schema/database for high-performance.
- Protecting data from other tenant.
references:
$ docker-compose up
$ docker-compose exec dj python3 manage.py migrate
- http://localhost:8000/admin/
- Tenant1: ID/PW: haru
- Tenant2: ID/PW: terada
- Admin: ID/PW: admin
- dj (django)
- db (postgres)
- ID/password:
root
/root
- ID/password:
$ docker-compose exec db psql -U db