This commit is contained in:
2025-08-13 19:21:41 +10:00
parent a1eca76102
commit 7990cec65c

View File

@@ -14,16 +14,24 @@ steps:
image: docker/compose:latest # Uses a Docker Compose-enabled image.
# This volume mount allows the Docker Compose CLI inside the Woodpecker agent container
# to communicate with the Docker daemon on the host machine.
commands:
# Navigate into the directory where the docker-compose.yml file is mounted.
- cd /home/gary/Discord/Acrybot
# The command to restart your Discord bot service using Docker Compose.
# IMPORTANT: Replace 'your_bot_service_name' with the actual service name
# defined in your docker-compose.yml file.
# Use 'docker compose' for newer Docker versions (v2) or 'docker-compose' for older ones.
- docker compose restart python-app
# - docker-compose restart your_bot_service_name # Uncomment this line if you use older Docker Compose.
volumes:
- name: docker_sock # A named volume for the Docker socket.
host:
path: /var/run/docker.sock # Maps the Docker socket from the host into the container.
- name: docker_compose_dir # A named volume for your Docker Compose project directory.
host:
# IMPORTANT: Replace '/path/to/your/bot/docker-compose' with the actual absolute path
# on your host machine where your docker-compose.yml file is located.
path: /home/gary/Discord/Acrybot
commands:
# Navigate into the directory where the docker-compose.yml file is mounted.
- cd /home/gary/Discord/Acrybot
# The command to restart your Discord bot service using Docker Compose.
# IMPORTANT: Replace 'your_bot_service_name' with the actual service name
# defined in your docker-compose.yml file.
# Use 'docker compose' for newer Docker versions (v2) or 'docker-compose' for older ones.
- docker compose restart python-app
# - docker-compose restart your_bot_service_name # Uncomment this line if you use older Docker Compose.
# Defines the volumes that are available to the steps in this pipeline.
volumes: