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.
 
 
 
 
 
 

41 lines
726 B

  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:9.5
  6. volumes:
  7. - data:/var/lib/postgresql/data
  8. backend:
  9. restart: always
  10. build: ./backend
  11. volumes:
  12. - ./backend:/backend
  13. ports:
  14. - "8000:8000"
  15. depends_on:
  16. - db
  17. command: python manage.py runserver 0.0.0.0:8000
  18. frontend:
  19. restart: always
  20. build: ./frontend
  21. command: npm run dev
  22. volumes:
  23. - ./frontend:/frontend
  24. - node_modules:/frontend/node_modules
  25. ports:
  26. - "8080:8080"
  27. nginx:
  28. restart: always
  29. build: ./nginx
  30. ports:
  31. - "80:80"
  32. - "443:443"
  33. volumes_from:
  34. - backend
  35. links:
  36. - backend
  37. - frontend
  38. volumes:
  39. data:
  40. node_modules: