Created
June 25, 2020 20:42
-
-
Save ezesundayeze/73298531c576343fc2779b496ab82bce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
web: | |
build: ./ | |
command: 'gunicorn rave_api_manager.wsgi:application --bind 0.0.0.0:8000' | |
container_name: rave_api_web | |
volumes: | |
- './:/usr/src/app/' | |
ports: | |
- '8000:8000' | |
environment: | |
- DATABASE_USER=django_tenants | |
- DATABASE_PASSWORD=django_tenants | |
- DATABASE_DB=django_tenants | |
- DATABASE_HOST=db | |
depends_on: | |
- db | |
db: | |
image: 'postgres' | |
container_name: rave_api_db | |
volumes: | |
- 'postgres_data:/var/lib/postgresql/data/' | |
environment: | |
- POSTGRES_USER=django_tenants | |
- POSTGRES_PASSWORD=django_tenants | |
- POSTGRES_DB=django_tenants | |
volumes: | |
postgres_data: null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment