rodriguezbyte/supervisor
This document provides instructions running a Supervisor service in Docker using Docker.
19
Docker Supervisor Service Documentation Overview This document provides instructions for setting up and running a Supervisor service in Docker using Docker Compose.
Prerequisites Docker installed on the system. Docker Compose configuration file (docker-compose.yml). Service Configuration The Supervisor service will be configured using Docker Compose. Ensure the following files and directories are present in your project:
docker-compose.yml: Docker Compose configuration file. docker/supervisor/supervisord.conf: Supervisor configuration file. docker/supervisor/conf.d/: Directory containing configuration files for programs supervised by Supervisor. docker-compose.yml Configuration Below is an example configuration of the Supervisor service in the docker-compose.yml file:
services:
supervisor:
image: rodriguezbyte/supervisor:1.0.0
container_name: supervisor
volumes:
- ./docker/supervisor/conf.d/:/etc/supervisor/conf.d/
- ./docker/supervisor/supervisord.conf:/etc/supervisord.conf
restart: always
Ensure to replace rodriguezbyte/supervisor:1.0.0 with the correct path to your image on Docker Hub.
Usage Instructions Clone or download the project to your system.
Ensure you have the required configuration files in the directory structure mentioned above.
Run the following command in the terminal at the location of the docker-compose.yml file:
bash Copy code docker-compose up -d This command will start the Supervisor service in a Docker container in the background.
Maintenance To add new supervised programs or make changes to the configuration, modify the corresponding configuration files in the docker/supervisor/ directory.
docker pull rodriguezbyte/supervisor