-
Notifications
You must be signed in to change notification settings - Fork 196
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
Docker-compose usage #241
Comments
Hello, I'm not sure to understand what you wish to do. Let's say you want to serve your documentation, this is insufficient, as the default "daux" command will generate the documentation. So you would need to set something like But also know that this is not the recommended way to serve daux pages, as they are supposed to be generated statically, you're better off generating the documentation and serving the static files using apache/nginx. This is going to be faster than generating the page at each view. |
Edit: I suppose I should clarify my question. Where am I supposed to mount my docs folder when trying to generate/serve? Thank you for your quick response! My next step has been to try and generate the documentation but I am now receiving a different error. daux:
build:
context: .
dockerfile: dockerfile.daux
container_name: "daux"
volumes:
- ./daux:/docs FROM daux/daux.io:latest
CMD ["daux", "generate"] I receive the error In this case, I am unsure if I am properly mounting my docs folder. |
I would go another way to generate and serve the documentation: With this multi-staged build : (first it generates the static documentation, then puts it in an nginx server to serve on port 80)
With the docker-compose configuration
|
Note that I didn't run this, there might be some small syntax errors |
Using your dockerfile, I am still receiving the error For some reason, it doesn't see the folder. Any idea what might be going on? |
Bump |
I have made some tests and this is a working version:
file Structure
|
Closing because of no activity, feel free to reopen if the solution didn't work or help |
Describe the bug
Daux set-up using docker-compose. Could be my own misunderstanding, but the following results in the container outputting
daux/daux.io unknown
:To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the container to run, but instead it forces itself off and outputs
daux/daux.io unknown
.Apologies if I'm missing a fundamental piece, but I've been dealing with this for hours.
The text was updated successfully, but these errors were encountered: