docker-compose.yml 860 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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='root: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. volumes:
  34. - /data/mysql/casdoor-data:/var/lib/mysql
  35. ports:
  36. - 3307:3306