From b44d4352ffe861b28f6d544bd2df9f3dc359e68d Mon Sep 17 00:00:00 2001 From: restitux Date: Mon, 19 Sep 2022 17:28:14 -0600 Subject: [PATCH] Add docker compose dind example --- .dockerignore | 3 ++- .gitignore | 1 + docker-compose-dind.yml | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 docker-compose-dind.yml diff --git a/.dockerignore b/.dockerignore index 1c3bccf..26f98a6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ -server.toml +*.yml +*.toml diff --git a/.gitignore b/.gitignore index 1c3bccf..7f6147f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ server.toml +server-dind.toml diff --git a/docker-compose-dind.yml b/docker-compose-dind.yml new file mode 100644 index 0000000..b948a55 --- /dev/null +++ b/docker-compose-dind.yml @@ -0,0 +1,34 @@ +version: "3" + +volumes: + docker-certs: + +networks: + cursorius: + +services: + cursorius: + build: + context: . + dockerfile: ./Dockerfile + ports: + - "127.0.0.1:45420:45420" + environment: + - "DOCKER_HOST=tcp://dind:2376" + - "DOCKER_CERT_PATH=/certs/client" + networks: + - cursorius + volumes: + - "./server-dind.toml:/root/.config/cursorius/server.toml" + - docker-certs:/certs/client:ro + + + dind: + image: docker:dind + privileged: true + networks: + - cursorius + environment: + - "DOCKER_TLS_CERTDIR=/certs" + volumes: + - docker-certs:/certs/client