Docker environment for python/nodejs scripts
- Clone the repository
git clone https://github.com/ground-creative/docker-scripts-runner
- Create a folder named volume and store your code there
mkdir volume
- Change environment variables in env.sample file and rename it to .env
docker compose --project-name=test up -d
Or
docker compose --project-name=test up -d --build
It's possible to override environmet variable file while starting or building a container
| Command | Description |
|---|---|
| CONTAINER_NAME | Container name |
| TEST | Keeps the container running and ignores any startup commands |
| DOCKER_IMAGE | Which image to use |
| COMMAND | Run startup command |
| VOLUME | Which volume to use |
| WORK_DIR | Container working directory |
| DOCKER_FILE | Docker build file |
| TIMEZONE | server timezone |
| LOG_DRIVER | log driver |
| RESTART | docker restart options |
TEST=true COMMAND="tail -f /dev/null" docker compose --project-name=test up -d