You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
901 B

  1. version: '2'
  2. services:
  3. db:
  4. image: postgres:9.5
  5. volumes:
  6. - postgresql:/var/lib/postgresql/data
  7. backend:
  8. build: ./backend
  9. expose:
  10. - '8000'
  11. links:
  12. - db
  13. volumes:
  14. - ./backend:/backend
  15. environment:
  16. DATABASE_ENGINE: 'django.db.backends.postgresql'
  17. DATABASE_NAME: 'postgres'
  18. DATABASE_USER: 'postgres'
  19. DATABASE_PASSWORD: ''
  20. DATABASE_HOST: 'db'
  21. DATABASE_PORT: '5432'
  22. command: python manage.py runserver 0.0.0.0:8000
  23. frontend:
  24. build: ./frontend
  25. volumes:
  26. - ./frontend:/frontend
  27. - node_modules:/frontend/node_modules
  28. nginx:
  29. build: ./nginx
  30. ports:
  31. - '80:80'
  32. - '443:443'
  33. volumes:
  34. - ./nginx/ssl:/certificates
  35. volumes_from:
  36. - backend
  37. links:
  38. - backend
  39. - frontend
  40. environment:
  41. - DOMAIN=localhost
  42. volumes:
  43. postgresql:
  44. node_modules: