Guest User

Untitled

a guest
Apr 8th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. db:
  5. image: postgres
  6. environment:
  7. - POSTGRES_DB=myproject
  8. - POSTGRES_USER=admin
  9. - POSTGRES_PASSWORD=admin_pass
  10. container_name: myproject_postgress
  11. volumes:
  12. - ./data/db:/var/lib/postgresql/data
  13.  
  14. myproject:
  15. build: ./myproject
  16. container_name: myproject
  17. env_file:
  18. - .env
  19. command: "tail -f /dev/null"
  20. volumes:
  21. - ./myproject:/web
  22. ports:
  23. - "8000:8000"
  24. depends_on:
  25. - db
  26. links:
  27. - db:postgres
  28. environment:
  29. - DJANGO_SETTINGS_MODULE=myproject.settings.local
  30.  
  31. DATABASES = {
  32. 'default': {
  33. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  34. 'NAME': 'myproject',
  35. 'USER': 'admin',
  36. 'PASSWORD': 'admin_pass',
  37. 'HOST': 'postgres',
  38. 'PORT': '',
  39. }
  40. }
Add Comment
Please, Sign In to add comment