docker-compose.yml 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:v1.297.0
  19. restart: always
  20. # environment:
  21. # - driverName=mysql
  22. # - dataSourceName=casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/
  23. volumes:
  24. - ./conf:/conf
  25. ports:
  26. - 8000:8000
  27. depends_on:
  28. - casdoor-mysql
  29. casdoor-mysql:
  30. image: mysql:8
  31. restart: always
  32. environment:
  33. - MYSQL_ROOT_PASSWORD=infish_2023_xx
  34. - MYSQL_DATABASE=casdoor
  35. - MYSQL_USER=casdoor
  36. - MYSQL_PASSWORD=infish_2023_xx
  37. volumes:
  38. - /data/mysql/casdoor-data:/var/lib/mysql
  39. ports:
  40. - 3307:3306