February 4, 20224 yr I want to convert from Docker-compose.yml to Unraid Docker Templates? I think I got it all, just not sure about init and the stop_grace_period? ```yml version: "3.8" services: signum: image: signumnetwork/node:latest-h2 init: true stop_grace_period: 2m deploy: replicas: 1 restart: always ports: - "8123:8123" - "8125:8125" volumes: - "./conf:/conf" - "./db:/db" ``` Here is my existing signum-node.xml <?xml version="1.0" encoding="utf-8"?> <Containers> <TemplateURL>https://raw.githubusercontent.com/paulpoco/docker-templates/master/paulpoco/signum-node.xml</TemplateURL> <Beta>True</Beta> <Category>Crypto Currency:</Category> <Date>2022-01-31</Date> <Changes> October 6, 2021 Signum-node for Unraid January 30, 2022 Remove port 8121 January 31, 2022 Fix registry url </Changes> <Project>https://github.com/signum-network/signum-node/</Project> <Name>signum-node</Name> <Description> https://www.signum.network/ The world's first HDD-mined cryptocurrency using an energy efficient and fair Proof-of-Commitment (PoC+) consensus algorithm. The two supported database backends are: H2 (embedded, recommended) MariaDB (advanced users) </Description> <Overview> Proof of Commitment - ASIC proof / Energy efficient and sustainable mining No ICO/Airdrops/Premine Turing-complete smart contracts, via Signum SmartJ Asset Exchange; Digital Goods Store; Crowdfunds, NFTs, games, and more (via smart contracts); and Alias system </Overview> <Support>https://github.com/signum-network/signum-node</Support> <Registry>https://hub.docker.com/r/signumnetwork/node</Registry> <GitHub>https://github.com/signum-network/signum-node</GitHub> <Repository>signumnetwork/node:latest-h2</Repository> <BindTime>true</BindTime> <Privileged>false</Privileged> <Networking> <Mode>bridge</Mode> <Publish> <Port> <HostPort>8123</HostPort> <ContainerPort>8123</ContainerPort> <Protocol>tcp</Protocol> </Port> <Port> <HostPort>8125</HostPort> <ContainerPort>8125</ContainerPort> <Protocol>tcp</Protocol> </Port> </Publish> </Networking> <Data> <Volume> <HostDir>/mnt/user/appdata/signum-node/conf</HostDir> <ContainerDir>/conf</ContainerDir> <Mode>rw</Mode> </Volume> <Volume> <HostDir>/mnt/user/appdata/signum-node/db</HostDir> <ContainerDir>/db</ContainerDir> <Mode>rw</Mode> </Volume> </Data> <WebUI>http://[IP]:[PORT:8125]</WebUI> <Banner></Banner> <Icon>https://raw.githubusercontent.com/signum-network/signum-node/main/resources/images/signum_overlay_logo.ico</Icon> <ExtraParams></ExtraParams> </Containers> Do I add --init under ExtraParams? Not sure about stop_grace_period: 2m Where would I put this and could I have the Global Docker Stop Timeout be 30 seconds but my one Docker with stop_grace_period: 2m would respect the 2 mintutes? I tried the --init under ExtraParams and this is the command that got generated: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='signum-node' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -p '8123:8123/tcp' -p '8125:8125/tcp' -v '/mnt/user/appdata/signum-node/conf':'/conf':'rw' -v '/mnt/user/appdata/signum-node/db':'/db':'rw' --init 'signumnetwork/node:latest-h2' The --init has to shutting down correctly to close all processes or does Unraid already do this with the Global Docker Stop Timeout?
April 10Apr 10 Have a look at thisGitHubGitHub - Ogglord/comp2unraid: Convert docker compose temp...Convert docker compose templates to unraid template - Ogglord/comp2unraid
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.