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.
 
 
 
 
 
 

30 line
484 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. ports:
  10. - "8000:8000"
  11. depends_on:
  12. - db
  13. frontend:
  14. build: ./frontend
  15. ports:
  16. - "8080:8080"
  17. nginx:
  18. build: ./nginx
  19. ports:
  20. - "80:80"
  21. - "443:443"
  22. volumes:
  23. - ./nginx/ssl:/certificates
  24. volumes_from:
  25. - backend
  26. links:
  27. - backend
  28. - frontend
  29. volumes:
  30. postgresql: