Adds COMPOSE_PROJECT_NAME and properly handes image and container_name
This commit is contained in:
parent
3899f6532d
commit
30ae0f1d65
@ -3,8 +3,8 @@
|
|||||||
services:
|
services:
|
||||||
prerender:
|
prerender:
|
||||||
build: .
|
build: .
|
||||||
image: ${IMAGE:-bikeshopi/prerender}
|
image: ${IMAGE:-bikeshopi/prerender-staging}
|
||||||
container_name: ${CONTAINER_NAME:-bikeshopi-prerender}
|
container_name: ${CONTAINER_NAME:-bikeshopi-prerender-staging}
|
||||||
user: node
|
user: node
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
init: true # makes all the difference, no more timeout / restarts without chrome alive
|
init: true # makes all the difference, no more timeout / restarts without chrome alive
|
||||||
@ -18,13 +18,14 @@ services:
|
|||||||
# - PROXY_SET_HEADER_HOST=$$http_host
|
# - PROXY_SET_HEADER_HOST=$$http_host
|
||||||
# - PROXY_SET_HEADER_USER_AGENT=$$http_user_agent
|
# - PROXY_SET_HEADER_USER_AGENT=$$http_user_agent
|
||||||
- VIRTUAL_PORT=3000
|
- VIRTUAL_PORT=3000
|
||||||
- VIRTUAL_HOST=${VIRTUAL_HOST:-prerender.bikeshopi.org}
|
- VIRTUAL_HOST=${VIRTUAL_HOST:-prerender-staging.bikeshopi.org}
|
||||||
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-prerender.bikeshopi.org}
|
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-prerender-staging.bikeshopi.org}
|
||||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-jr@bikeshopi.org}
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-jr@bikeshopi.org}
|
||||||
- LETSENCRYPT_TEST=${LETSENCRYPT_TEST:-false}
|
- LETSENCRYPT_TEST=${LETSENCRYPT_TEST:-false}
|
||||||
- CHROME_LOCATION=/usr/bin/chromium
|
- CHROME_LOCATION=/usr/bin/chromium
|
||||||
- PAGE_LOAD_TIMEOUT=3000 # default 20000 (20 seconds)
|
- PAGE_LOAD_TIMEOUT=3000 # default 20000 (20 seconds)
|
||||||
# - CHROME_FLAGS=--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222
|
# - CHROME_FLAGS=--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222
|
||||||
|
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-staging}
|
||||||
networks:
|
networks:
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user