# Docker 部署Caddy 目录浏览 - IPIP
Linux

docker run -d -p 80:80 \
-v /data/caddy/data:/usr/share/caddy/ \
-v /data/caddy/Caddyfile:/etc/caddy/Caddyfile \
caddy
:80 {
        # Set this path to your site's directory.
        root * /usr/share/caddy

        # Enable the static file server.
        file_server browse

        # Another common task is to set up a reverse proxy:
        # reverse_proxy localhost:8080

        # Or serve a PHP site through php-fpm:
        # php_fastcgi localhost:9000
}

评论

This is just a placeholder img.