PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

adding goStatic in docker-compose with forceHTTP #4

Open casparjones opened 7 years ago

casparjones commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

Do you still have problems @casparjones ?