From eac2b0222b92dfadcb12685f55bb0d0f1c028d71 Mon Sep 17 00:00:00 2001 From: Azarath7 <158289825+Azarath7@users.noreply.github.com> Date: Sun, 15 Jun 2025 11:00:18 +0300 Subject: [PATCH] Update docker-compose.yml Refined comments, removed web service, added healthcheck for vocard-dashboard service --- docker-compose.yml | 72 ++++++++++++++-------------------------------- 1 file changed, 22 insertions(+), 50 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7d9d039..4b6cfe3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,40 +1,7 @@ # ------------------------------------------------------------------------------------------------------------ # -# READ THIS BEFORE INSTALL! - -# This is a docker-compose file for running Vocard with Lavalink and MongoDB. -# In order to run this, you need to have Docker and Docker Compose installed. -# You can install Docker from https://docs.docker.com/get-docker/ -# and Docker Compose from https://docs.docker.com/compose/install/ - -# Step 1: Start the installation by creating the future config directory for Vocard. -# example - `root@docker:~# mkdir -p /opt/vocard/config` - -# Use `cd` to navigate to the config directory. -# example - `root@docker:~# cd /opt/vocard/config` - -# Step 3: Choose installation method: Build the image from the Dockerfile or pull it from GitHub(recommended). -# If you chose to pull from Docker Hub, comment the "build" lines and uncomment the "image" line. -# If you chose to build the image from the Dockerfile, do the following: -# uncomment this -# build: -# dockerfile: ./Dockerfile -# and comment this -# image: ghcr.io/chocomeow/vocard:latest -# example - `root@docker:/opt/vocard/config# wget https://github.com/ChocoMeow/Vocard/archive/refs/heads/main.zip` - -# Step 4: Configure application.yml and settings.json in the config directory. -# In order to avoid silly syntax errors it is recommended to use external code editor such as VS Code or Notepad++. -# Then you can upload files to host using tools such as WinSCP or -# using `nano` to create and edit the files directly using hosts terminal. -# NOTE that some terminals DO NOT let you paste, so you can either use WinSCP or SSH app like Putty. - -# example - `root@docker:/opt/vocard/config# nano application.yml` -# example - `root@docker:/opt/vocard/config# nano settings.json` -# To exit nano, press `Ctrl + S`, then `Ctrl + X` to save changes. - -# Step 5: If the values are set correctly, you can start the installation by running the following command -# example - `root@docker:/opt/vocard/config# docker-compose up -d` (could be `docker compose` on some systems) +# For installation instructions please visit - https://docs.vocard.xyz/2.7.1/bot/setup/docker-linux/ +# or for Windows Docker - https://docs.vocard.xyz/2.7.1/bot/setup/docker-windows/ # ------------------------------------------ THANK YOU FOR READING! ------------------------------------------ # name: vocard @@ -87,20 +54,25 @@ services: start_period: 10s - # vocard-dashboard: - # container_name: vocard-dashboard - # image: ghcr.io/chocomeow/vocard-dashboard:latest - # restart: unless-stopped - # # If you want to build the image from the Dockerfile, uncomment the "build" lines and comment the "image" line. - # # build: - # # context: ./dashboard - # # dockerfile: ./Dockerfile - # volumes: - # - ./dashboard/settings.json:/app/settings.json - # ports: - # - 8000:8000 - # networks: - # - vocard +# vocard-dashboard: # to install this, please check out - https://docs.vocard.xyz/2.7.1/dashboard/ +# container_name: vocard-dashboard +# image: ghcr.io/chocomeow/vocard-dashboard:latest +# restart: unless-stopped +# # If you want to build the image from the Dockerfile, uncomment the "build" lines and comment the "image" line. +# # build: +# # context: ./dashboard +# # dockerfile: ./Dockerfile +# volumes: +# - ./dashboard/settings.json:/app/settings.json +# ports: +# - 8000:8000 +# networks: +# - vocard +# healthcheck: +# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/"] +# interval: 15s +# timeout: 3s +# retries: 5 vocard: container_name: vocard @@ -117,7 +89,7 @@ services: lavalink: condition: service_healthy # vocard-dashboard: - # condition: service_started + # condition: service_healthy vocard-db: condition: service_healthy