This repository has been archived on 2020-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
2019-08-07 14:31:22 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
x-logging: &json-log
|
|
|
|
driver: 'json-file'
|
|
|
|
options:
|
|
|
|
max-size: 20m
|
|
|
|
max-file: '5'
|
|
|
|
|
2019-12-26 18:21:17 +00:00
|
|
|
networks:
|
|
|
|
tor_backend:
|
|
|
|
external: true
|
2019-08-07 14:31:22 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
2020-01-10 15:37:21 +00:00
|
|
|
image: nofish/zeronet #localhost:5000/zeronet Import problems?
|
|
|
|
command: "ash -c '( tor& ) && python3 zeronet.py --ui_ip 0.0.0.0 --tor enable'"
|
2019-08-08 10:34:29 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
2019-12-26 18:21:17 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: '500M'
|
2019-08-08 10:34:29 +00:00
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
delay: 5s
|
|
|
|
order: start-first
|
|
|
|
failure_action: rollback
|
|
|
|
placement:
|
2020-01-10 15:37:21 +00:00
|
|
|
constraints: [node.hostname == nbg-4]
|
2019-08-07 14:31:22 +00:00
|
|
|
logging: *json-log
|
2019-12-26 18:21:17 +00:00
|
|
|
networks:
|
|
|
|
- tor_backend
|
2019-08-07 14:31:22 +00:00
|
|
|
ports:
|
|
|
|
- '43110:43110'
|
2020-01-21 17:03:14 +00:00
|
|
|
volumes:
|
|
|
|
- type: tmpfs
|
|
|
|
target: '/app/data'
|
|
|
|
tmpfs:
|
|
|
|
size: '200M'
|