Add docker compose dind example
This commit is contained in:
+2
-1
@@ -1 +1,2 @@
|
|||||||
server.toml
|
*.yml
|
||||||
|
*.toml
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
server.toml
|
server.toml
|
||||||
|
server-dind.toml
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user