[root@instance-0b8j6ush dotNetApi]# docker-compose up
Recreating reverse-proxy ...
Recreating reverse-proxy ... done
Attaching to dotnetapicontains, reverse-proxy
reverse-proxy | 2020/05/09 00:54:33 [emerg] 1#1: unknown directive "server" in /etc/nginx/conf.d/default.conf:1
reverse-proxy | nginx: [emerg] unknown directive "server" in /etc/nginx/conf.d/default.conf:1
reverse-proxy exited with code 1
是因为conf配置文件编码类型为 UTF-8-BOM 编码,需要转化为 UTF-8 编码