https://github.com/nchekwa/docker-swarm-cookbook
Portainer Template Repos in one file
https://github.com/nchekwa/docker-swarm-cookbook
docker docker-compose docker-compose-template docker-swarm portainer
Last synced: 2 months ago
JSON representation
Portainer Template Repos in one file
- Host: GitHub
- URL: https://github.com/nchekwa/docker-swarm-cookbook
- Owner: nchekwa
- License: mit
- Created: 2024-04-18T11:51:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T14:45:50.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T00:06:04.763Z (over 1 year ago)
- Topics: docker, docker-compose, docker-compose-template, docker-swarm, portainer
- Language: Python
- Homepage:
- Size: 1.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-swarm-cookbook
Docker Swarm Cookbook Collection
## Rules:
### Services
#### Always:
- Always add a name to container services.
- Always add a container_name to container services (excluding swarmStacks which not allow this).
- Always conainer_name must include project name ie. -.
- Always add a restart policy to container services.
- Always use a volume to container services.
- Always use database full name, do not use shortcut like 'db' - use ie mysql. There are projects which are using multiple databases types.
#### Try:
- Try to add a healthcheck to container services.
- Try to add traefik label to container services which should be access in public network.
- Try to add a network to container services.
### Volume
1) Create a volume always with a name.
2) Use syntax naming convention for volume: -- ie. langflow-postgres-data.