goStatic icon indicating copy to clipboard operation
goStatic copied to clipboard

adding goStatic in docker-compose with forceHTTP

Open casparjones opened this issue 8 years ago • 2 comments

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

casparjones avatar May 18 '17 19:05 casparjones

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"

miton18 avatar May 21 '17 15:05 miton18

Do you still have problems @casparjones ?

PierreZ avatar Nov 19 '17 23:11 PierreZ