build: compose with a crontab
This commit is contained in:
+13
-4
@@ -10,7 +10,16 @@ services:
|
||||
volumes:
|
||||
- "./data:/data"
|
||||
- "./letsencrypt:/etc/letsencrypt"
|
||||
environment:
|
||||
- HOST=${HOST}
|
||||
- TOKEN_SALT=${TOKEN_SALT}
|
||||
command: run
|
||||
env_file: .env
|
||||
command: --debug run
|
||||
|
||||
stapler-crontab:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
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