Docker Swarm Cookbook Collection
- 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 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.
- Create a volume always with a name.
- Use syntax naming convention for volume: -- ie. langflow-postgres-data.