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

How do I mount homebrew.orcpub in docker-compose? #603

Closed
rubydotexe opened this issue Feb 24, 2024 · 3 comments
Closed

How do I mount homebrew.orcpub in docker-compose? #603

rubydotexe opened this issue Feb 24, 2024 · 3 comments

Comments

@rubydotexe
Copy link

I don't understand these instructions. I realize this is potentially a dumb question but I can't find a direct answer to this. The instructions just say to add the orcbrew file in the deploy folder, but the deploy folder isn't mounted anywhere in the docker container for Orcpub or Datomic? Where should I mount it so that its automatically loaded?

@datdamnzotz
Copy link

datdamnzotz commented Feb 26, 2024

It is mounted here:
https://github.com/Orcpub/orcpub/blob/develop/docker-compose.yaml#L44

and used by nginx right here to publish it:
https://github.com/Orcpub/orcpub/blob/develop/deploy/nginx.conf#L31-L33

download the raw version of docker-compose.yaml and drop it in any directory. e.g. /home/orcpub/docker-compose.yaml

Create the deploy directory. eg. /home/orcpub/deploy/
Download all the files and directories from https://github.com/Orcpub/orcpub/tree/develop/deploy/ into /home/orcpub/deploy/

chmod +x snakeoil.sh
Run ./snakeoil.sh

So now you should have:
/home/orcpub/deploy/
/home/orcpub/deploy/docker-compose.yaml
/home/orcpub/deploy/snakeoil.key
/home/orcpub/deploy/snakeoil.crt

Create your homebrew.orcbrew in
/home/orcpub/deploy/homebrew/homebrew.orcbrew

docker-compose up -d to run it in the background.

You will end up with:
/home/orcpub/deploy/
/home/orcpub/data/ <-this is where your database lives.
/home/orcpub/logs/

@rubydotexe
Copy link
Author

Is nginx the only way to deploy these? I am using a different reverse proxy named pomerium - so I assume I would need to find the equivalent configuration for this reverse proxy?

@datdamnzotz
Copy link

Nope, you can use whatever reverse proxy you want, that's just the one in the docker image/compose file for ease of use.

You can replace
https://github.com/Orcpub/orcpub/blob/develop/docker-compose.yaml#L35-L46
with any reverse proxy you are comfortable with.

On the main website we run we are using traefik as the reverse proxy and publish to a couple backend apps. We don't use nginx at all.

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

2 participants