restart service on system failure/reboot and respect port number settings (#61)

securer-js-connection
Peter Rauscher 2023-04-16 23:55:57 +00:00 committed by GitHub
parent 10a6ddb31c
commit 415e50510c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 9 deletions

View File

@ -2,33 +2,30 @@ version: "3.8"
services: services:
oapen-engine : oapen-engine :
build: ./oapen-engine/ build: ./oapen-engine/
restart: always
env_file: env_file:
- .env - .env
environment: environment:
- RUN_CLEAN=0
- COLLECTION_IMPORT_LIMIT=0 # Set to 0 for full harvest - COLLECTION_IMPORT_LIMIT=0 # Set to 0 for full harvest
- REFRESH_PERIOD=86400 # daily - REFRESH_PERIOD=86400 # daily
- HARVEST_PERIOD=604800 # weekly - HARVEST_PERIOD=604800 # weekly
api: api:
build: ./api/ build: ./api/
restart: always
env_file: env_file:
- .env - .env
expose:
- ${API_PORT}
ports: ports:
- "0.0.0.0:${API_PORT}:${API_PORT}" - "0.0.0.0:${API_PORT}:${API_PORT}"
web: web:
build: ./web/ build: ./web/
expose: restart: always
- ${WEB_DEMO_PORT}
ports: ports:
- "0.0.0.0:${WEB_DEMO_PORT}:${WEB_DEMO_PORT}" - "0.0.0.0:${WEB_DEMO_PORT}:3000"
embed-script-test: embed-script-test:
build: ./embed-script/ build: ./embed-script/
expose: restart: always
- ${EMBED_SCRIPT_PORT}
ports: ports:
- "0.0.0.0:${EMBED_SCRIPT_PORT}:${EMBED_SCRIPT_PORT}" - "0.0.0.0:${EMBED_SCRIPT_PORT}:3002"
volumes: volumes:
db: db:
driver: local driver: local