diff --git a/compose.yml b/compose.yml index 6f7cd8a..273d692 100644 --- a/compose.yml +++ b/compose.yml @@ -4,7 +4,7 @@ version: "3.8" services: app: image: dragas/thttpd - command: ["/usr/sbin/thttpd", "-C", "/etc/thttpd.conf", "-D", "-l", "/dev/stderr"] + command: ["-D", "-l", "/dev/stderr", "-d", "/var/www/http/$HTTP_SUBDIR"] networks: - proxy deploy: @@ -22,15 +22,6 @@ services: - HTTP_SUBDIR volumes: - content:/var/www/http - configs: - - source: thttpd_conf - target: /etc/thttpd.conf - #healthcheck: - # test: ["CMD", "curl", "-f", "http://localhost"] - # interval: 30s - # timeout: 10s - # retries: 10 - # start_period: 1m volumes: content: @@ -39,9 +30,3 @@ networks: proxy: external: true -configs: - thttpd_conf: - name: ${STACK_NAME}_thttpd_conf_${THTTPD_DEFAULT_CONF_VERSION} - template_driver: golang - file: thttpd.conf - diff --git a/thttpd.conf b/thttpd.conf deleted file mode 100644 index d0cf82b..0000000 --- a/thttpd.conf +++ /dev/null @@ -1,8 +0,0 @@ -dir=/var/www/http/{{env "HTTP_SUBDIR"}} -vhost -chroot -user=thttpd -cgipat=**.cgi -logfile=/var/log/thttpd/thttpd.log -pidfile=/var/run/thttpd.pid -charset=utf-8