abiosoft / abiosoft/caddy-docker

files 10 and access.log are created on container start

Đang mở
#64 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
787
Fork
303
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm not sure where this issue is from but I noticed when loading my `Caddyfile` using this container I get 2 files created in my `/srv` directory called `10` and `access.log`.

Here's my `Caddyfile`.

```
0.0.0.0:2015 {
gzip
log /logs/requests.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 10 # Keep at most 10 log files
rotate_compress # Compress rotated log files in gzip format
}
errors /logs/errors.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 10 # Keep at most 10 log files
rotate_compress # Compress rotated log files in gzip format
}
fastcgi / 127.0.0.1:9000 php # php variant only
startup php-fpm7 & # php variant only
}
```

After running this the files appear in `$(pwd)/root/sites/user123/example.com/www`.
```bash
docker run -d \
-p 2015:2015 \
-v $(pwd)/.caddy/php/Caddyfile:/etc/Caddyfile \
-v $(pwd)/root/sites/user123/example.com/www:/srv \
-v $(pwd)/root/sites/user123/example.com/logs:/logs \
--name=example.com \
abiosoft/caddy:php
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.