docker-compose.yaml 723 B

1234567891011121314151617181920212223242526272829303132
  1. version: "2.1"
  2. services:
  3. 12heroes_app:
  4. build:
  5. context: ./
  6. args :
  7. - VUE_APP_SERVER_HOST=${VUE_APP_SERVER_HOST}
  8. - VUE_APP_SERVER_PORT=${VUE_APP_SERVER_PORT}
  9. image: 12heroes_app
  10. container_name: 12heroes_app
  11. environment:
  12. - VUE_APP_PORT
  13. ports:
  14. - "${VUE_APP_PORT}:${VUE_APP_PORT}"
  15. restart: always
  16. 12heroes_server:
  17. build:
  18. context: ./server/
  19. image: 12heroes_server
  20. container_name: 12heroes_server
  21. network_mode: host
  22. environment:
  23. - DB
  24. - DB_NAME
  25. - DB_PORT
  26. - DB_SOCKET
  27. - DB_USER
  28. - DB_PASS
  29. - VUE_APP_SERVER_PORT
  30. ports:
  31. - "${VUE_APP_SERVER_PORT}:${VUE_APP_SERVER_PORT}"
  32. restart: always