docker-compose.yaml 559 B

123456789101112131415161718192021222324252627282930
  1. version: '3.8'
  2. # 网络
  3. networks:
  4. default:
  5. name: default-network
  6. external: true
  7. services:
  8. auth-casdoor:
  9. image: "registry.cn-chengdu.aliyuncs.com/infish/pack-casdoor-auth:v1.0.0"
  10. restart: always
  11. ports:
  12. - 36002:8000
  13. volumes:
  14. - ./conf:/conf
  15. depends_on:
  16. - auth-mysql
  17. auth-mysql:
  18. restart: always
  19. image: mysql:5.7.42
  20. volumes:
  21. - /data/auth/mysql:/var/lib/mysql
  22. environment:
  23. MYSQL_ROOT_PASSWORD: auth2023
  24. MYSQL_DATABASE: casdoor
  25. ports:
  26. - 33306:3306