build: add logs handling in compose file

This commit is contained in:
2026-04-20 23:04:44 +02:00
parent ac94704c9e
commit 233d7f657b
+13 -7
View File
@@ -1,25 +1,31 @@
name: stapler
x-stapler-default: &stapler-default
build: .
restart: unless-stopped
env_file: .env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
stapler:
build: .
restart: unless-stopped
<<: *stapler-default
ports:
- "80:80"
- "443:443"
volumes:
- "./data:/data"
- "./letsencrypt:/etc/letsencrypt"
env_file: .env
command: --debug run
stapler-crontab:
build: .
restart: unless-stopped
<<: *stapler-default
volumes:
- "./data:/data"
- "./letsencrypt:/etc/letsencrypt"
- "./crontab:/etc/crontabs/root"
env_file: .env
entrypoint: /usr/sbin/crond -f