github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/deploy/systemd-docker/flow-consensus.service (about) 1 [Unit] 2 Description=Flow Consensus Node running with Docker 3 Requires=docker.service 4 After=network-online.target docker.service 5 6 [Install] 7 Alias=flow.service 8 WantedBy=default.target 9 10 [Service] 11 Type=simple 12 TimeoutStopSec=1m 13 14 RestartSec=5s 15 Restart=always 16 17 StandardOutput=journal 18 19 EnvironmentFile=/etc/flow/runtime-conf.env 20 EnvironmentFile=-/etc/flow/conf.d/*.env 21 22 ExecStartPre=docker pull gcr.io/flow-container-registry/consensus:${FLOW_GO_NODE_VERSION} 23 ExecStart=docker run --rm \ 24 -v /var/flow/bootstrap:/bootstrap:ro \ 25 -v /var/flow/data:/data:rw \ 26 --name flow-go \ 27 --network host \ 28 gcr.io/flow-container-registry/consensus:${FLOW_GO_NODE_VERSION} \ 29 --nodeid ${FLOW_GO_NODE_ID} \ 30 --bootstrapdir /bootstrap \ 31 --datadir /data/protocol \ 32 --secretsdir /data/secrets \ 33 --bind 0.0.0.0:3569 \ 34 --loglevel ERROR