mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-24 17:34:17 +03:00
01af5fb5b4
Ensures environment is correctly set to production, and sets build-and-start script to now recompoile when conf.yml is updated
31 lines
913 B
YAML
31 lines
913 B
YAML
---
|
|
# Welcome to Dashy! To get started, run `docker compose up`
|
|
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
|
|
container_name: Dashy
|
|
# Pass in your config file below, by specifying the path on your host machine
|
|
# volumes:
|
|
# - /root/my-config.yml:/app/public/conf.yml
|
|
ports:
|
|
- 4000:80
|
|
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
|
|
# 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
|