This repository has been archived on 2020-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
2019-12-26 18:22:11 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
x-logging: &json-log
|
|
|
|
driver: 'json-file'
|
|
|
|
options:
|
|
|
|
max-size: 20m
|
|
|
|
max-file: '5'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
driver: overlay
|
|
|
|
attachable: true
|
|
|
|
driver_opts:
|
|
|
|
encrypted: "true"
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: localhost:5000/tor
|
|
|
|
logging: *json-log
|
|
|
|
deploy:
|
|
|
|
replicas: 1
|
2020-01-21 17:03:27 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpus: '0.2'
|
|
|
|
memory: '100M'
|
2019-12-26 18:22:11 +00:00
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 10s
|
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
delay: 5s
|
|
|
|
order: start-first
|
2020-01-10 15:36:10 +00:00
|
|
|
placement:
|
|
|
|
constraints: [node.hostname == nbg-4]
|
2019-12-26 18:22:11 +00:00
|
|
|
ports:
|
|
|
|
- '9050:9050'
|
2020-03-04 18:28:28 +00:00
|
|
|
- '7050:7050'
|
2019-12-26 18:22:11 +00:00
|
|
|
networks:
|
|
|
|
- backend
|