Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

POC for unraid template

Aaron Kimbrellcdd7222ed0de
diff --git a/extras/docker/unraid/my-wger-unraid.xml b/extras/docker/unraid/my-wger-unraid.xml
new file mode 100644
index 000000000..932ba94fe
--- /dev/null
+++ b/extras/docker/unraid/my-wger-unraid.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0"?>
+<Container version="2">
+ <Name>wger-unraid</Name>
+ <Repository>aronwk/wger:latest</Repository>
+ <Registry/>
+ <Network>sebnet</Network>
+ <MyIP/>
+ <Shell>sh</Shell>
+ <Privileged>false</Privileged>
+ <Support/>
+ <Project>https://wger.de/en/software/features</Project>
+ <Overview>wger (&#x2C8;v&#x25B;&#x261;&#x250;) Workout Manager is a free, open source web application that help you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility. It offers a REST API as well, for easy integration with other projects and tools.</Overview>
+ <Category>Productivity: Other:</Category>
+ <WebUI>http://[IP]:[PORT:8000]</WebUI>
+ <TemplateURL/>
+ <Icon/>
+ <ExtraParams/>
+ <PostArgs/>
+ <CPUset/>
+ <DateInstalled>1600562701</DateInstalled>
+ <DonateText/>
+ <DonateLink/>
+ <Description>wger (&#x2C8;v&#x25B;&#x261;&#x250;) Workout Manager is a free, open source web application that help you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility. It offers a REST API as well, for easy integration with other projects and tools.</Description>
+ <Networking>
+ <Mode>sebnet</Mode>
+ <Publish>
+ <Port>
+ <HostPort></HostPort>
+ <ContainerPort>8000</ContainerPort>
+ <Protocol>tcp</Protocol>
+ </Port>
+ </Publish>
+ </Networking>
+ <Data>
+ <Volume>
+ <HostDir>/mnt/user/appdata/wger/media</HostDir>
+ <ContainerDir>/home/wger/media</ContainerDir>
+ <Mode>rw</Mode>
+ </Volume>
+ <Volume>
+ <HostDir>/mnt/user/appdata/wger/static</HostDir>
+ <ContainerDir>/home/wger/static</ContainerDir>
+ <Mode>rw</Mode>
+ </Volume>
+ </Data>
+ <Environment>
+ <Variable>
+ <Value>django.db.backends.postgresql</Value>
+ <Name>DJANGO_DB_ENGINE</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>wger</Value>
+ <Name>DJANGO_DB_DATABASE</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>wger</Value>
+ <Name>DJANGO_DB_USER</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value></Value>
+ <Name>DJANGO_DB_PASSWORD</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value></Value>
+ <Name>DJANGO_DB_HOST</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>5432</Value>
+ <Name>DJANGO_DB_PORT</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>US/Central</Value>
+ <Name>TIME_ZONE</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value/>
+ <Name>RECAPTCHA_PUBLIC_KEY</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value/>
+ <Name>RECAPTCHA_PRIVATE_KEY</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>false</Value>
+ <Name>NOCAPTCHA</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value>https://wger.example.com</Value>
+ <Name>SITE_URL</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value/>
+ <Name>FROM_EMAIL</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value></Value>
+ <Name>ALLOW_REGISTRATION</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value></Value>
+ <Name>ALLOW_GUEST_USERS</Name>
+ <Mode/>
+ </Variable>
+ <Variable>
+ <Value></Value>
+ <Name>SECRET_KEY</Name>
+ <Mode/>
+ </Variable>
+ </Environment>
+ <Labels/>
+ <Config Name="PORT" Target="8000" Default="8000" Mode="tcp" Description="WebUI port: 8000" Type="Port" Display="always" Required="true" Mask="false">8555</Config>
+ <Config Name="DJANGO_DB_ENGINE" Target="DJANGO_DB_ENGINE" Default="django.db.backends.postgresql" Mode="" Description="Database Engine" Type="Variable" Display="always" Required="true" Mask="false">django.db.backends.postgresql</Config>
+ <Config Name="DJANGO_DB_DATABASE" Target="DJANGO_DB_DATABASE" Default="wger" Mode="" Description="Database Name" Type="Variable" Display="always" Required="true" Mask="false">wger</Config>
+ <Config Name="DJANGO_DB_USER" Target="DJANGO_DB_USER" Default="wger" Mode="" Description="Database User" Type="Variable" Display="always" Required="true" Mask="false">wger</Config>
+ <Config Name="DJANGO_DB_PASSWORD" Target="DJANGO_DB_PASSWORD" Default="" Mode="" Description="Database password" Type="Variable" Display="always" Required="false" Mask="true"></Config>
+ <Config Name="DJANGO_DB_HOST" Target="DJANGO_DB_HOST" Default="" Mode="" Description="Database host" Type="Variable" Display="always" Required="true" Mask="false"></Config>
+ <Config Name="DJANGO_DB_PORT" Target="DJANGO_DB_PORT" Default="5432" Mode="" Description="Database port" Type="Variable" Display="always" Required="true" Mask="false">5432</Config>
+ <Config Name="TIME_ZONE" Target="TIME_ZONE" Default="US/Central" Mode="" Description="Time Zone" Type="Variable" Display="always" Required="true" Mask="false">US/Central</Config>
+ <Config Name="RECAPTCHA_PUBLIC_KEY" Target="RECAPTCHA_PUBLIC_KEY" Default="" Mode="" Description="RECAPTCHA_PUBLIC_KEY" Type="Variable" Display="always" Required="false" Mask="false"/>
+ <Config Name="RECAPTCHA_PRIVATE_KEY" Target="RECAPTCHA_PRIVATE_KEY" Default="" Mode="" Description="RECAPTCHA_PRIVATE_KEY" Type="Variable" Display="always" Required="false" Mask="false"/>
+ <Config Name="NOCAPTCHA" Target="NOCAPTCHA" Default="false" Mode="" Description="NOCAPTCHA: true/false&#13;&#10;Default: false" Type="Variable" Display="always" Required="false" Mask="false">false</Config>
+ <Config Name="SITE_URL" Target="SITE_URL" Default="" Mode="" Description="SITE_URL: ex. http://www.my-local-gym.com" Type="Variable" Display="always" Required="true" Mask="false">https://wger.example.com</Config>
+ <Config Name="DJANGO_MEDIA_ROOT" Target="/home/wger/media" Default="" Mode="rw" Description="Path to uploaded files" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/wger/media</Config>
+ <Config Name="DJANGO_STATIC_ROOT" Target="/home/wger/static" Default="" Mode="rw" Description="DJANGO_STATIC_ROOT" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/wger/static</Config>
+ <Config Name="FROM_EMAIL" Target="FROM_EMAIL" Default="" Mode="" Description="From email address when sending emails" Type="Variable" Display="always" Required="false" Mask="false"/>
+ <Config Name="ALLOW_REGISTRATION" Target="ALLOW_REGISTRATION" Default="true" Mode="" Description="Default: true" Type="Variable" Display="always" Required="false" Mask="false"></Config>
+ <Config Name="ALLOW_GUEST_USERS" Target="ALLOW_GUEST_USERS" Default="true" Mode="" Description="Default: true" Type="Variable" Display="always" Required="false" Mask="false"></Config>
+ <Config Name="SECRET_KEY" Target="SECRET_KEY" Default="" Mode="" Description="Must be 50 characters" Type="Variable" Display="always" Required="true" Mask="false"></Config>
+</Container>
diff --git a/extras/docker/unraid/settings.py b/extras/docker/unraid/settings.py
index 58c4b51f5..13ce27969 100644
--- a/extras/docker/unraid/settings.py
+++ b/extras/docker/unraid/settings.py
@@ -66,7 +66,7 @@ SESSION_ENGINE = "django.contrib.sessions.backends.cache"
if DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
else:
- # add email vars from env
+ # TODO add email vars from env
pass
# Sender address used for sent emails