Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Alt791350
Copy link

After trying it out I found some ways to improve the docker setup.

I haven't updated the README yet since their might be change requests.

In this setup you only need to:

  • Copy the .env.example file to a .env file
  • Change the values to match your stuff
  • Run docker compose build
  • Run docker compose up -d

And that would be it.

This also fixes the missing moderation.ts for docker builds, building non-docker still works with the old method.
I did also notice that the SHARP service might not boot correctly if the database hasn't initialised yet, especially if it has yet to import the init.sql but after a restart of the SHARP service it seems to be fixed and working as intended.

Andrew de Jong added 2 commits July 2, 2025 17:00
fix: moved environment variables to a single .env file so docker compose can use these (at runtime and buildtime)
fix(docker-compose): correct port forwarding based on .env variables
fix(docker-compose): app not able to connect to database or redis since they are not in a/(the same) network
fix(env): created a .env.example with working values that people can use immediatly to launch an instance (you should still change the values for an optimal experience)
fix(Dockerfile:build-main): added build arguments so the env variables could be reused
fix(Dockerfile): implemented moderation.ts and kept it as original as possible (not the scope of this commit)
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.

1 participant