Gone live
This commit is contained in:
@@ -71,10 +71,18 @@ services:
|
||||
image: nginx:alpine
|
||||
container_name: ppr_prod_web
|
||||
restart: always
|
||||
environment:
|
||||
BASE_URL: ${BASE_URL}
|
||||
command: >
|
||||
sh -c "cp /usr/share/nginx/html/ppr.html /tmp/ppr.html.orig &&
|
||||
sed 's|__BASE_URL__|'"\$BASE_URL"'|g' /tmp/ppr.html.orig > /usr/share/nginx/html/ppr.html &&
|
||||
cp /usr/share/nginx/html/index.html /tmp/index.html.orig &&
|
||||
sed 's|__BASE_URL__|'"\$BASE_URL"'|g' /tmp/index.html.orig > /usr/share/nginx/html/index.html &&
|
||||
nginx -g 'daemon off;'"
|
||||
ports:
|
||||
- "${WEB_PORT_EXTERNAL}:80"
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html:ro
|
||||
- ./web:/usr/share/nginx/html
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
Reference in New Issue
Block a user