35 lines
566 B
YAML
35 lines
566 B
YAML
version: '3.7'
|
|
|
|
x-logging: &json-log
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: 20m
|
|
max-file: '5'
|
|
|
|
x-singlen0-start: &s0s
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 5s
|
|
order: start-first
|
|
failure_action: rollback
|
|
placement:
|
|
constraints: [node.hostname == fra-n0]
|
|
|
|
volumes:
|
|
data:
|
|
|
|
services:
|
|
server:
|
|
image: localhost:5000/zeronet
|
|
deploy: *s0s
|
|
logging: *json-log
|
|
environment:
|
|
ENABLE_TOR: 'true'
|
|
ports:
|
|
- '43110:43110'
|
|
volumes:
|
|
- 'data:/root/data'
|