update sslproxy to support large files for nextcloud
This commit is contained in:
10
dockerfiles/services/cron/Dockerfile
Normal file
10
dockerfiles/services/cron/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM alpine:latest
|
||||
MAINTAINER Richard Morgan
|
||||
|
||||
|
||||
COPY ./periodic /etc/periodic/15min
|
||||
|
||||
# Run the command on container startup
|
||||
#CMD cron && tail -f /var/log/cron.log
|
||||
#CMD tail -f /var/log/cron.log
|
||||
CMD crond -l 2 -f
|
||||
38
dockerfiles/services/cron/docker-compose.yml
Normal file
38
dockerfiles/services/cron/docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
# docker-compose file for cron
|
||||
# docker login dkregistry.xai-corp.net:5000
|
||||
# docker-compose build && docker push dkregistry.xai-corp.net:5000/cron:latest
|
||||
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
||||
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
cron:
|
||||
image: "dkregistry.xai-corp.net:5000/cron:latest"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
deploy:
|
||||
mode: replicated
|
||||
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: "1s"
|
||||
max_attempts: 3
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 256M
|
||||
|
||||
logging:
|
||||
driver: syslog
|
||||
options:
|
||||
syslog-address: "tcp+tls://logs6.papertrailapp.com:38577"
|
||||
tag: "{{.Name}}/{{.ID}}"
|
||||
|
||||
#networks:
|
||||
# default:
|
||||
# external:
|
||||
# name: prod-private
|
||||
3
dockerfiles/services/cron/periodic/15min/helloworld
Normal file
3
dockerfiles/services/cron/periodic/15min/helloworld
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Hello world" >> /var/log/cron.log 2>&1
|
||||
Reference in New Issue
Block a user