41 lines
836 B
YAML
41 lines
836 B
YAML
version: '3.7'
|
|
|
|
x-logging: &json-log
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: 20m
|
|
max-file: '5'
|
|
|
|
networks:
|
|
tor_backend:
|
|
external: true
|
|
|
|
services:
|
|
server:
|
|
image: nofish/zeronet #localhost:5000/zeronet Import problems?
|
|
command: "ash -c '( tor& ) && python3 zeronet.py --ui_ip 0.0.0.0 --tor enable'"
|
|
deploy:
|
|
replicas: 1
|
|
resources:
|
|
limits:
|
|
memory: '500M'
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 5s
|
|
order: start-first
|
|
failure_action: rollback
|
|
placement:
|
|
constraints: [node.hostname == nbg-4]
|
|
logging: *json-log
|
|
networks:
|
|
- tor_backend
|
|
ports:
|
|
- '43110:43110'
|
|
volumes:
|
|
- type: tmpfs
|
|
target: '/app/data'
|
|
tmpfs:
|
|
size: '200M'
|