2021-06-05 13:48:42 +02:00
|
|
|
---
|
2021-10-30 23:25:04 +02:00
|
|
|
# Welcome to Dashy! To get started, run `docker compose up -d`
|
2021-08-15 13:11:52 +02:00
|
|
|
# You can configure your container here, by modifying this file
|
2021-06-10 20:46:46 +02:00
|
|
|
version: "3.8"
|
2021-06-05 13:48:42 +02:00
|
|
|
services:
|
|
|
|
dashy:
|
2021-08-15 13:11:52 +02:00
|
|
|
container_name: Dashy
|
|
|
|
|
|
|
|
# Pull latest image from DockerHub
|
|
|
|
image: lissy93/dashy
|
|
|
|
|
2021-06-10 20:46:46 +02:00
|
|
|
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
|
2021-06-21 22:20:09 +02:00
|
|
|
# build: .
|
2021-08-15 13:11:52 +02:00
|
|
|
|
|
|
|
# You can also use an image with a different tag, or pull from a different registry, e.g:
|
2024-04-13 13:32:17 +02:00
|
|
|
# image: ghcr.io/lissy93/dashy or image: lissy93/dashy:3.0.0
|
2021-08-15 13:11:52 +02:00
|
|
|
|
2021-06-10 20:46:46 +02:00
|
|
|
# Pass in your config file below, by specifying the path on your host machine
|
|
|
|
# volumes:
|
2024-04-13 13:32:17 +02:00
|
|
|
# - /path/to/my-config.yml:/app/user-data/conf.yml
|
|
|
|
# - /path/to/item-icons:/app/user-data/item-icons/
|
2021-08-15 13:11:52 +02:00
|
|
|
|
2024-04-28 21:16:15 +02:00
|
|
|
# Set port that web service will be served on. Keep container port as 8080
|
2021-06-05 13:48:42 +02:00
|
|
|
ports:
|
2024-04-13 13:32:17 +02:00
|
|
|
- 4000:8080
|
2021-08-15 13:11:52 +02:00
|
|
|
|
2021-06-21 22:04:49 +02:00
|
|
|
# Set any environmental variables
|
|
|
|
environment:
|
2021-06-21 22:20:09 +02:00
|
|
|
- NODE_ENV=production
|
2021-06-10 20:46:46 +02:00
|
|
|
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
|
|
|
|
# - UID=1000
|
|
|
|
# - GID=1000
|
2021-08-15 13:11:52 +02:00
|
|
|
|
2021-06-20 17:58:03 +02:00
|
|
|
# Specify restart policy
|
2021-06-10 20:46:46 +02:00
|
|
|
restart: unless-stopped
|
2021-08-15 13:11:52 +02:00
|
|
|
|
2021-06-20 17:58:03 +02:00
|
|
|
# Configure healthchecks
|
2021-06-10 20:46:46 +02:00
|
|
|
healthcheck:
|
2021-06-14 21:46:59 +02:00
|
|
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
2021-06-10 20:46:46 +02:00
|
|
|
interval: 1m30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2021-06-20 17:58:03 +02:00
|
|
|
start_period: 40s
|