33 lines
650 B
YAML
33 lines
650 B
YAML
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:
|
|
<<: *stapler-default
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
extra_hosts:
|
|
- "host.containers.internal:host-gateway"
|
|
volumes:
|
|
- "./data:/data"
|
|
- "./letsencrypt:/etc/letsencrypt"
|
|
command: --debug run
|
|
|
|
stapler-crontab:
|
|
<<: *stapler-default
|
|
volumes:
|
|
- "./data:/data"
|
|
- "./letsencrypt:/etc/letsencrypt"
|
|
- "./crontab:/etc/crontabs/root"
|
|
entrypoint: /usr/sbin/crond -f
|