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

[Query] Self-host without docker #110

Closed
vdbhb59 opened this issue Jan 16, 2025 · 5 comments
Closed

[Query] Self-host without docker #110

vdbhb59 opened this issue Jan 16, 2025 · 5 comments

Comments

@vdbhb59
Copy link

vdbhb59 commented Jan 16, 2025

How to host without docker? I cannot do it with docker for various reasons, hence need to self-host without docker.

@mzch
Copy link

mzch commented Jan 16, 2025

I hope this help you...

  1. Install Node.JS
  2. Install pnpm. e.g.) corepack enable pnpm or npm install -g pnpm
  3. Clone this repo.
  4. cd working directory.
  5. pnpm install
  6. pnpm --filter picsur-shared build
  7. pnpm --filter picsur-frontend build
  8. pnpm --filter picsur-backend build
  9. Edit environment variables as below:
PICSUR_PRODUCTION=true
#
PICSUR_ADMIN_PASSWORD=admin_password'
PICSUR_JWT_SECRET='secret'
# PICSUR_JWT_EXPIRY=7d
PICSUR_HOST=127.0.0.1
PICSUR_PORT=3000
PICSUR_DEMO=false
# PICSUR_DEMO_INTERVAL=1000 * 60 * 5
PICSUR_VERBOSE=false
# PICSUR_TELEMETRY=
PICSUR_MAX_FILE_SIZE=128000000
PICSUR_REDIS_URL='redis://127.0.0.1:6379/'
PICSUR_STATIC_FRONTEND_ROOT='{repo working directory}/frontend/dist'
PICSUR_DB_HOST='localhost'
PICSUR_DB_PORT=5432
PICSUR_DB_USERNAME='picsur'
PICSUR_DB_PASSWORD='password'
PICSUR_DB_DATABASE='picsur'
  1. PICSUR_PRODUCTION=true pnpm --filter picsur-backend startt:prod

@vdbhb59
Copy link
Author

vdbhb59 commented Jan 16, 2025

@mzch thanks mate. Where can I find the environment file?
I can only see 2 .ts files, but I cannot see the same format compared to what you gave above mate.

@mzch
Copy link

mzch commented Jan 16, 2025

Hi @vdbhb59 , This repository doesn't have such an environemtnt file. I found them with find . -type f -exec grep -H EnvPrefix {} \; in the ./backend/src. You can also find some of them in the ./support/picsur.docker-compose.yml. You have to give them in a startup script or a systemd unit file on the Linux.

@CaramelFur
Copy link
Owner

Yes, that's probably the best way of doing it.

Also @vdbhb59 just out of curiosity, what environment have you found yourself in that you cannot use docker?

@vdbhb59
Copy link
Author

vdbhb59 commented Jan 17, 2025

@CaramelFur mate, I hate Docker. It just over-complicates stuffs. Moreover, I host/deploy things which I can control easily and not have to spend hours behind it.

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

No branches or pull requests

3 participants