Closed quinlanharsch closed 3 months ago
If you're declaring command
as an array, then separate args and their values by new lines.
services:
main_app:
# ...
# command: hugo server --bind 0.0.0.0
command:
- hugo
- server
- --bind
- 0.0.0.0
# ...
See https://docs.docker.com/compose/compose-file/05-services/#command for details.
Thank you so much. This was the problem. I think the real issue is I needed to host it on an actual webserver. I pulled an Apache httpd image and have it running on that, and can use this to build the image.
Appreciate you showing me this though in case I need it going forward. You rock!
:)
Discussed in https://github.com/orgs/hugomods/discussions/8