Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: postgres
- environment:
- - POSTGRES_DB=myproject
- - POSTGRES_USER=admin
- - POSTGRES_PASSWORD=admin_pass
- container_name: myproject_postgress
- volumes:
- - ./data/db:/var/lib/postgresql/data
- myproject:
- build: ./myproject
- container_name: myproject
- env_file:
- - .env
- command: "tail -f /dev/null"
- volumes:
- - ./myproject:/web
- ports:
- - "8000:8000"
- depends_on:
- - db
- links:
- - db:postgres
- environment:
- - DJANGO_SETTINGS_MODULE=myproject.settings.local
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': 'myproject',
- 'USER': 'admin',
- 'PASSWORD': 'admin_pass',
- 'HOST': 'postgres',
- 'PORT': '',
- }
- }
Add Comment
Please, Sign In to add comment