Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvladislav/vm-docker-collection
Collection of some useful docker container with composer and swarm setup with traefik support
https://github.com/mvladislav/vm-docker-collection
collection docker docker-compose docker-swarm monitoring security swarm traefik
Last synced: about 5 hours ago
JSON representation
Collection of some useful docker container with composer and swarm setup with traefik support
- Host: GitHub
- URL: https://github.com/mvladislav/vm-docker-collection
- Owner: MVladislav
- License: mit
- Created: 2021-10-27T22:08:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T21:28:52.000Z (2 months ago)
- Last Synced: 2024-09-10T02:13:34.123Z (2 months ago)
- Topics: collection, docker, docker-compose, docker-swarm, monitoring, security, swarm, traefik
- Language: Dockerfile
- Homepage:
- Size: 28.1 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Docker Collection
---
- [Docker Collection](#docker-collection)
- [best practice start-up](#best-practice-start-up)
- [References](#references)---
A docker collection with composer for a fast start-up.
- Each service folder has its own **README**.
## best practice start-up
use docker-swarm to manage and start containers.
for that is in each service following defined:
```yml
services:
...:
...
deploy:
mode: replicated
replicas: 1
placement:
max_replicas_per_node: 1
constraints:
# - "node.id==${NODE_ID}"
- "node.role==${NODE_ROLE}"
restart_policy:
condition: on-failure
...
ports:
- target: ...
published: ...
mode: host
```to start this configuration with all supportings between docker-stack and docker-composer
run it example as follow:create alias for a `docker-swarm` command:
```sh
$alias docker='DOCKER_BUILDKIT=1 docker'
$alias docker-compose='docker compose'
$alias docker-swarm-compose='docker compose --compatibility config | sed '\''s|cpus: \([0-9]\+\(\.[0-9]\+\)*\)|cpus: "\1"|'\'' | sed '\''1{/^name:/d}'\'' | sed '\''s/published: "\(.*\)"/published: \1/'\'' | docker stack deploy --resolve-image=never --with-registry-auth --compose-file -'```
and as run:
```sh
$docker-swarm-compose
```---
## References
- Not included
-
-
-
-
-
-
-
----
**☕ COFFEE is a HUG in a MUG ☕**