38 lines
743 B
YAML
38 lines
743 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: localhost:5000/zeronet
|
|
command: ["zeronet.py", "--tor", "always", "--tor-proxy", "tor_server:9050", "--ui-ip", "*"]
|
|
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 == fra-n4]
|
|
logging: *json-log
|
|
networks:
|
|
- tor_backend
|
|
ports:
|
|
- '43110:43110'
|
|
tmpfs:
|
|
- '/app/data'
|