docker-compose.yml文件内容:
version: "3.8" services: kodbox-db: image: mariadb container_name: kodbox-db hostname: kodbox-db command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW volumes: - /etc/localtime:/etc/localtime:ro - kodbox-db-data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: xxx MYSQL_DATABASE: kodbox MYSQL_USER: user MYSQL_PASSWORD: xxx kodbox-redis: image: redis:alpine container_name: kodbox-redis hostname: kodbox-redis restart: always volumes: - kodbox-redis-data:/data - /etc/localtime:/etc/localtime:ro environment: - REDIS_REPLICATION_MODE=master - REDIS_APPENDONLY=yes - REDIS_APPENDFSYNC=always kodbox-app: image: kodcloud/kodbox:v1.3404 container_name: kodbox hostname: kodbox restart: always ports: - 8000:80 volumes: - /etc/localtime:/etc/localtime:ro - kodbox-app-data:/var/www/html depends_on: - kodbox-db - kodbox-redis volumes: kodbox-db-data: kodbox-redis-data: kodbox-app-data: