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.
 
 
 
 
 
 

42 lines
710 B

  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:9.5
  6. volumes:
  7. - postgresql:/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. frontend:
  18. restart: always
  19. build: ./frontend
  20. volumes:
  21. - frontend:/frontend
  22. ports:
  23. - "8080:8080"
  24. nginx:
  25. restart: always
  26. build: ./nginx
  27. ports:
  28. - "80:80"
  29. - "443:443"
  30. environment:
  31. - domain=lesspass.com
  32. volumes:
  33. - ./nginx/ssl:/certificates
  34. volumes_from:
  35. - backend
  36. links:
  37. - backend
  38. - frontend
  39. volumes:
  40. postgresql:
  41. backend:
  42. frontend: