build: add logs handling in compose file
This commit is contained in:
+13
-7
@@ -1,25 +1,31 @@
|
|||||||
name: stapler
|
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:
|
services:
|
||||||
stapler:
|
stapler:
|
||||||
build: .
|
<<: *stapler-default
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
- "./letsencrypt:/etc/letsencrypt"
|
- "./letsencrypt:/etc/letsencrypt"
|
||||||
env_file: .env
|
|
||||||
command: --debug run
|
command: --debug run
|
||||||
|
|
||||||
stapler-crontab:
|
stapler-crontab:
|
||||||
build: .
|
<<: *stapler-default
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
- "./letsencrypt:/etc/letsencrypt"
|
- "./letsencrypt:/etc/letsencrypt"
|
||||||
- "./crontab:/etc/crontabs/root"
|
- "./crontab:/etc/crontabs/root"
|
||||||
env_file: .env
|
|
||||||
entrypoint: /usr/sbin/crond -f
|
entrypoint: /usr/sbin/crond -f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user