Last active
August 19, 2024 01:18
-
-
Save EliasMasche/ead754b9cd7079c473a142a01915e654 to your computer and use it in GitHub Desktop.
Docker compose for dashy dashboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
dashy: | |
# To build from source, replace 'image: lissy93/dashy' with 'build: .' | |
# build: . | |
image: lissy93/dashy | |
# Pass in your config file below, by specifying the path on your host machine | |
volumes: | |
- /your/directory/dashy/config.yml:/app/user-data/conf.yml | |
ports: | |
- 4000:8080 | |
# Set any environmental variables | |
environment: | |
- NODE_ENV=production | |
- 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 | |
networks: | |
- dockge_default | |
networks: | |
dockge_default: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It requires a configuration as volumes are bind mount to a config file based in your directory:
https://gist.github.com/Lissy93/000f712a5ce98f212817d20bc16bab10#file-example-1-getting-started-conf-yml