Commit 1283c7f0 authored by Ryan Herbert's avatar Ryan Herbert

docker use entrypoint script for nginx

parent bdba1961
...@@ -41,8 +41,7 @@ services: ...@@ -41,8 +41,7 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
#command: bash /entrypoints/ command: bash /entrypoints/
command: bash -c "spawn-fcgi -u www-data -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap ; nginx -g 'daemon off;'"
volumes_from: volumes_from:
- uwsgi - uwsgi
#!/bin/bash #!/bin/bash
# sed cannot redirect output to the input file so rename the file and sed into the final desired name spawn-fcgi -u www-data -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap
mv /etc/vidjil/conf.js /etc/vidjil/tmp nginx -g 'daemon off;'
sed s/#{my_url}/$UWSGI_PORT_433_TCP_ADDR/g /etc/vidjil/tmp > /etc/vidjil/conf.js
rm /etc/vidjil/tmp
ln -sf /etc/vidjil/conf.js /usr/share/vidjil/browser/js/conf.js
nginx -g "daemon off;"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment