39 lines
825 B
YAML
39 lines
825 B
YAML
---
|
|
# 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
|