🏗️ Sets environment in Docker, and adds recompile watcher to start script

Ensures environment is correctly set to production, and sets build-and-start script to now recompoile when conf.yml is updated
This commit is contained in:
Alicia Sykes
2021-06-20 16:58:03 +01:00
parent e75b0c780f
commit 01af5fb5b4
3 changed files with 11 additions and 5 deletions

View File

@@ -3,6 +3,9 @@
version: "3.8"
services:
dashy:
# Set any environmental variables
environment:
NODE_ENV: production
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
# build: .
image: lissy93/dashy
@@ -16,10 +19,12 @@ services:
# environment:
# - UID=1000
# - GID=1000
# Specify restart policy
restart: unless-stopped
# Configure healthchecks
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 40s