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

docker use entrypoint script for nginx

parent bdba1961
......@@ -41,8 +41,7 @@ services:
ports:
- "80:80"
- "443:443"
#command: bash /entrypoints/nginx-entrypoint.sh
command: bash -c "spawn-fcgi -u www-data -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap ; nginx -g 'daemon off;'"
command: bash /entrypoints/nginx-entrypoint.sh
volumes_from:
- uwsgi
......
#!/bin/bash
# sed cannot redirect output to the input file so rename the file and sed into the final desired name
mv /etc/vidjil/conf.js /etc/vidjil/tmp
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;"
spawn-fcgi -u www-data -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap
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