- Copy and update
.env
cp .env.example .env
# Modify your environments
NGINX_PORT=80
- Update Nginx config with site and proxy.
cp .docker/nginx/default.example.conf .docker/nginx/default.conf
# .docker/nginx/default.conf
server_name your-site.com;
location /api/ {
proxy_pass http://api.com;
}
- Run compose command
docker-compose up
Then, site is opened at localhost:${NGINX_PORT}/grader