Removed bottom volumes moving host path upwards
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -15,7 +15,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
# Using the short syntax to reference globally defined named volumes
|
# Using the short syntax to reference globally defined named volumes
|
||||||
- docker_sock:/var/run/docker.sock # Maps named volume 'docker_sock' to container path
|
- docker_sock:/var/run/docker.sock # Maps named volume 'docker_sock' to container path
|
||||||
- docker_compose_dir:/app # Maps named volume 'docker_compose_dir' to container path
|
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
||||||
commands:
|
commands:
|
||||||
- cd /app
|
- cd /app
|
||||||
# Execute the Docker Compose command
|
# Execute the Docker Compose command
|
||||||
@@ -25,13 +25,3 @@ steps:
|
|||||||
- docker-compose restart python-app
|
- docker-compose restart python-app
|
||||||
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
||||||
# - docker-compose restart your_bot_service_name
|
# - docker-compose restart your_bot_service_name
|
||||||
|
|
||||||
# Define the host paths for the named volumes.
|
|
||||||
# These global volume definitions are used by the steps above.
|
|
||||||
volumes:
|
|
||||||
- name: docker_sock # Refers to the docker_sock volume used in steps
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock # Actual path on your host for the Docker socket
|
|
||||||
- name: docker_compose_dir # Refers to the docker_compose_dir volume used in steps
|
|
||||||
host:
|
|
||||||
path: /home/gary/Discord/Acrybot # Your actual path on the host for docker-compose.yml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user