docker-compose-dev.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. version: '3'
  2. services:
  3. tl_api:
  4. build:
  5. context: .
  6. dockerfile: ./Dockerfile
  7. image: registry.yingcaibx.com/tl/api:latest
  8. restart: always
  9. container_name: tl_api
  10. environment:
  11. - SPRING_PROFILES_ACTIVE=dev
  12. - SPRING_DATASOURCE_DYNAMIC_DATASOURCE_MASTER_URL=jdbc:mysql://mysql:3306/tl?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&autoReconnect=true&failOverReadOnly=false
  13. - SW_AGENT_COLLECTOR_BACKEND_SERVICES=10.150.10.135:11800
  14. - SW_AGENT_NAME=tl-admin-dev
  15. - JAVA_AGENT=/skywalking-agent-java/skywalking-agent.jar
  16. ports:
  17. - 8001:8080
  18. networks:
  19. - dockertest_bx_default
  20. # deploy: #限制资源使用
  21. # resources:
  22. # limits:
  23. # cpus: '0.50'
  24. # memory: 2048M
  25. labels:
  26. - "traefik.http.routers.tl_api.rule=Host(`test.tl.web.yingcaibx.com`) && PathPrefix(`/api`)"
  27. - "traefik.http.routers.tl_api.middlewares=tl_api-stripprefix"
  28. - "traefik.http.middlewares.tl_api-stripprefix.stripprefix.prefixes=/api"
  29. - "traefik.http.routers.tl_api.entrypoints=websecure"
  30. - "traefik.http.routers.tl_api.tls.certresolver=yxt"
  31. networks:
  32. dockertest_bx_default:
  33. external: true