docker-compose-pre.yml 594 B

123456789101112131415161718192021
  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=pre
  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. ports:
  14. - 8080:8080
  15. networks:
  16. - tl_bx_default
  17. networks:
  18. tl_bx_default:
  19. external: true