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

adding goStatic in docker-compose with forceHTTP #4

Open
casparjones opened this issue May 18, 2017 · 2 comments
Open

adding goStatic in docker-compose with forceHTTP #4

casparjones opened this issue May 18, 2017 · 2 comments

Comments

@casparjones
Copy link

I'an new with docker and search a method to add your container to an compose file, but find no dokumentation who can i add the --forceHTTP parameter in the docker-composer.yml
I get the same error without --forceHTTP:
2017/05/18 19:23:53 Failed generating certs: open /etc/ssl/server/cert.pem: no such file or directory

@miton18
Copy link

miton18 commented May 21, 2017

According to the docker-compose documentation, you can override the entrypoint of the image, so you can test with this docker-compose.yml file :

version: '3'

services:
  webserver:
    image: pierrezemb/gostatic:latest
    ports:
    - "80:8043" # 8043 is the default port
    volumes:
    - "./website:/srv/http"
    entrypoint: "/goStatic --forceHTTP"

@PierreZ
Copy link
Owner

PierreZ commented Nov 19, 2017

Do you still have problems @casparjones ?

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