docker-compose.yml 590 B

1234567891011121314151617181920212223242526272829
  1. version: "3.8"
  2. networks:
  3. default:
  4. name: default-network
  5. external: true
  6. services:
  7. casdoor:
  8. image: casbin/casdoor:latest
  9. restart: always
  10. environment:
  11. - driverName=mysql
  12. - dataSourceName='root:infish_2023_xx@tcp(casdoor-mysql:3306)/'
  13. ports:
  14. - 8000:8000
  15. depends_on:
  16. - casdoor-mysql
  17. casdoor-mysql:
  18. image: mysql:8
  19. restart: always
  20. environment:
  21. - MYSQL_ROOT_PASSWORD=infish_2023_xx
  22. - MYSQL_DATABASE=casdoor
  23. volumes:
  24. - /data/mysql/casdoor-data:/var/lib/mysql
  25. ports:
  26. - 3307:3306