Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completely revamped the install process #33

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Anarch157a
Copy link

I know it's a lot of stuff to take in one go, but this install process dispenses with scripts and uses only the docker-compose.yml to start the containers, while all the settings are done in a configuration file with environment variables.

The complete process is described on the README.md with as much detail as I could muster.

I tested the install with both Docker and Podman on a Debian 12 LXC container running under Proxmox, something that is pretty common on the Selfhosting community, for what I could gather from Reddit and Lemmy.

I hope you enjoy.

Bento Silveira added 13 commits July 22, 2023 22:27
- unified the Nginx configuration into a single file
- added SSL settings to Nginx
- all hosts are configured using variables on the docker-compose file
- changes on the main nginx.conf done by sed on a docker-entrypoint.d
  script
- changes to the hardcoded URLs on the javascript done by a script in
  docker-entrypoint.d
- nginx now exposes port 80 and 443, dispensing wit yet another proxy
this will allow us to use a consistend environment file
to set up everything
Some adjustments on configuration and general comments
echo "hibernate.connection.driver_class: org.postgresql.Driver" >> /app/config.properties
echo "hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect" >> /app/config.properties

exec java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar /app/piped.jar

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exec java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar /app/piped.jar
/bin/sh /hotspot-entrypoint.sh

Might be nicer to re-use the original entrypoint here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants