An open API service indexing awesome lists of open source software.

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

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.