-
Notifications
You must be signed in to change notification settings - Fork 14
Django Deploy
Christian edited this page Jun 14, 2017
·
2 revisions
Reqs: Nginx (proxy server, load balancer), pg, gunicorn (app level server, requests). #!/bin/bash config file
# you can set your environment varaibles with ARG directive
In your Dockerfile you can have
ARG request_domain
or default it with a value ARG request_domain=127.0.0.1
Now you can reference it inside the actual Dockerfile
ENV request_domain=$request_domain
Now build the container
docker build --build-arg request_domain=mydomain Dockerfile
You need to include that variable in the docker build command