docker-compose.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. version: '3.7'
  2. services:
  3. cpee:
  4. build:
  5. context: .
  6. dockerfile: $PWD/cpee/Dockerfile
  7. restart: always
  8. ports:
  9. - "8298:8298"
  10. - "9296:9296" # 9296 is the port for enabling the instantiation service
  11. - "8080:8080"
  12. volumes:
  13. - cpeeCockpit:/cpee-cockpit
  14. networks:
  15. oebb_net:
  16. nginx:
  17. image: "nginx:alpine"
  18. restart: always
  19. ports:
  20. - "9090:80"
  21. volumes:
  22. - cpeeCockpit:/usr/share/nginx/html/cpee-cockpit
  23. - ./cpee/js_libs:/usr/share/nginx/html/js_libs:ro
  24. - ./cpee/oebb_sim:/usr/share/nginx/html/oebb_sim:ro
  25. - ./cpee/cdp_ui:/usr/share/nginx/html/cdp_ui:ro
  26. # - type: bind
  27. # source: ./cpee/js_libs
  28. # target: /usr/share/nginx/html/js_libs:ro
  29. - type: bind
  30. source: ./nginx/sites-enabled/
  31. target: /etc/nginx/sites-enabled
  32. - type: bind
  33. source: ./nginx/default.d
  34. target: /etc/nginx/conf.d
  35. networks:
  36. oebb_net:
  37. ipv4_address: 172.19.0.30
  38. php:
  39. build:
  40. context: .
  41. dockerfile: $PWD/nginx/Dockerfile
  42. restart: always
  43. networks:
  44. oebb_net:
  45. volumes:
  46. - type: bind
  47. source: ./nginx/public_html
  48. target: /usr/share/nginx/html/
  49. volumes:
  50. cpeeCockpit:
  51. networks:
  52. oebb_net:
  53. ipam:
  54. driver: default
  55. config:
  56. - subnet: "172.19.0.0/16"