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.
 
 
 
 
 
 

40 rivejä
740 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. build: ./backend
  10. volumes:
  11. - ./backend:/backend
  12. ports:
  13. - "8000:8000"
  14. depends_on:
  15. - db
  16. command: python manage.py runserver 0.0.0.0:8000
  17. frontend:
  18. build: ./frontend
  19. volumes:
  20. - ./frontend:/frontend
  21. - /frontend/node_modules
  22. ports:
  23. - "8080:8080"
  24. command: npm run dev
  25. nginx:
  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: