docker-compose.yml 762 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '3.4'
  2. services:
  3. identity:
  4. image: ${DOCKER_REGISTRY-fw}/identity:${TAG:-latest}
  5. container_name: identity
  6. environment:
  7. - "TZ=Asia/Shanghai"
  8. #restart: on-failure
  9. ports:
  10. - "50200:80"
  11. - "50201:50001"
  12. identity-dapr:
  13. image: "daprio/daprd:edge"
  14. command: [ "./daprd",
  15. "-app-id", "identity",
  16. "-app-port", "80",
  17. "-dapr-http-port", "50202",
  18. "-dapr-grpc-port", "50203"
  19. #"-components-path", "/components",
  20. #"-config", "/configuration/config.yaml"
  21. ]
  22. #volumes:
  23. #- "./dapr/components/:/components"
  24. #- "./dapr/configuration/:/configuration"
  25. depends_on:
  26. - identity
  27. network_mode: "service:identity"
  28. networks:
  29. default:
  30. external: true
  31. name: fw-dapr-network