build: add logs handling in compose file
This commit is contained in:
+13
-7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user