version: "3.8" networks: default: name: default-network external: true services: casdoor-nginx: image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1" restart: always volumes: - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/www:/usr/share/nginx/html ports: - 18098:80 depends_on: - casdoor casdoor: image: casbin/casdoor:v1.297.0 restart: always # environment: # - driverName=mysql # - dataSourceName=casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/ volumes: - ./conf:/conf ports: - 8000:8000 depends_on: - casdoor-mysql casdoor-mysql: image: mysql:8 restart: always environment: - MYSQL_ROOT_PASSWORD=infish_2023_xx - MYSQL_DATABASE=casdoor - MYSQL_USER=casdoor - MYSQL_PASSWORD=infish_2023_xx volumes: - /data/mysql/casdoor-data:/var/lib/mysql ports: - 3307:3306