2021-06-05 14:48:42 +03:00
|
|
|
---
|
2021-06-10 21:46:46 +03:00
|
|
|
# Welcome to Dashy! To get started, run `docker compose up`
|
2021-08-15 14:11:52 +03:00
|
|
|
# You can configure your container here, by modifying this file
|
2021-06-10 21:46:46 +03:00
|
|
|
version: "3.8"
|
2021-06-05 14:48:42 +03:00
|
|
|
services:
|
|
|
|
dashy:
|
2021-08-15 14:11:52 +03:00
|
|
|
container_name: Dashy
|
|
|
|
|
|
|
|
# Pull latest image from DockerHub
|
|
|
|
image: lissy93/dashy
|
|
|
|
|
2021-06-10 21:46:46 +03:00
|
|
|
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
|
2021-06-21 23:20:09 +03:00
|
|
|
# build: .
|
2021-08-15 14:11:52 +03:00
|
|
|
|
|
|
|
# Or, to use a Dockerfile for your archtecture, uncomment the following
|
|
|
|
# context: .
|
|
|
|
# dockerfile: ./docker/Dockerfile-arm32v7
|
|
|
|
|
|
|
|
# You can also use an image with a different tag, or pull from a different registry, e.g:
|
|
|
|
# image: ghcr.io/lissy93/dashy or image: lissy93/dashy:arm64v8
|
|
|
|
|
2021-06-10 21:46:46 +03:00
|
|
|
# Pass in your config file below, by specifying the path on your host machine
|
|
|
|
# volumes:
|
|
|
|
# - /root/my-config.yml:/app/public/conf.yml
|
2021-08-15 14:11:52 +03:00
|
|
|
|
|
|
|
# Set port that web service will be served on. Keep container port as 80
|
2021-06-05 14:48:42 +03:00
|
|
|
ports:
|
2021-06-10 21:46:46 +03:00
|
|
|
- 4000:80
|
2021-08-15 14:11:52 +03:00
|
|
|
|
2021-06-21 23:04:49 +03:00
|
|
|
# Set any environmental variables
|
|
|
|
environment:
|
2021-06-21 23:20:09 +03:00
|
|
|
- NODE_ENV=production
|
2021-06-10 21:46:46 +03: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 14:11:52 +03:00
|
|
|
|
2021-06-20 18:58:03 +03:00
|
|
|
# Specify restart policy
|
2021-06-10 21:46:46 +03:00
|
|
|
restart: unless-stopped
|
2021-08-15 14:11:52 +03:00
|
|
|
|
2021-06-20 18:58:03 +03:00
|
|
|
# Configure healthchecks
|
2021-06-10 21:46:46 +03:00
|
|
|
healthcheck:
|
2021-06-14 22:46:59 +03:00
|
|
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
2021-06-10 21:46:46 +03:00
|
|
|
interval: 1m30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2021-06-20 18:58:03 +03:00
|
|
|
start_period: 40s
|