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

Deployment #2

Open
DavidBuchanan314 opened this issue Feb 26, 2024 · 2 comments
Open

Deployment #2

DavidBuchanan314 opened this issue Feb 26, 2024 · 2 comments

Comments

@DavidBuchanan314
Copy link
Owner

DavidBuchanan314 commented Feb 26, 2024

Expanding on the outline in #1

Deployment instructions will likely look something like this:

  1. Create an unprivileged "millipds" user account.
  2. Create the directory (where?) where millipds stores its database(s), give it the correct access permissions.
sudo adduser --system --shell /bin/false --home /opt/millipds millipds
  1. As the millipds user, init a python virtualenv (how? which virtualenv system?) and install the millipds package within it, via pypi (also supporting from git, I suppose)
sudo -u millipds -s
  1. Create a systemd unit file, start/enable it
  2. Configure nginx to point at the running millipds instance
@DavidBuchanan314
Copy link
Owner Author

DavidBuchanan314 commented Feb 27, 2024

This is mostly worked out for now, at least, for Ubuntu+Nginx specifically (see README - will probably migrate this to dedicated docs tho).

I'd also like to think about setting up a more minimal install - alpine, in docker? I don't know anything about docker.

@TimBurga
Copy link

One way to simplify the install process for users is to publish the built container somewhere like ghcr.io and provide a docker compose file that references both it and nginx

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

No branches or pull requests

2 participants