docker-compose.yml 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "3.8"
  2. networks:
  3. default:
  4. name: default-network
  5. external: true
  6. services:
  7. casdoor-nginx:
  8. image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
  9. restart: always
  10. volumes:
  11. - ./nginx/conf.d:/etc/nginx/conf.d
  12. - ./nginx/www:/usr/share/nginx/html
  13. ports:
  14. - 18098:80
  15. depends_on:
  16. - casdoor
  17. casdoor:
  18. image: casbin/casdoor:latest
  19. restart: always
  20. environment:
  21. - driverName=mysql
  22. - dataSourceName='casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/'
  23. ports:
  24. - 8000:8000
  25. depends_on:
  26. - casdoor-mysql
  27. casdoor-mysql:
  28. image: mysql:8
  29. restart: always
  30. environment:
  31. - MYSQL_ROOT_PASSWORD=infish_2023_xx
  32. - MYSQL_DATABASE=casdoor
  33. - MYSQL_USER=casdoor
  34. - MYSQL_PASSWORD=infish_2023_xx
  35. volumes:
  36. - /data/mysql/casdoor-data:/var/lib/mysql
  37. ports:
  38. - 3307:3306