version: '3' name: sandcastles services: root-ca: image: smallstep/step-ca:0.25.0 volumes: - './volumes/root-ca:/home/step' environment: - DOCKER_STEPCA_INIT_NAME=Letterbook Sandcastles - DOCKER_STEPCA_INIT_DNS_NAMES=root-ca.castle,root-ca,localhost - DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT=true - DOCKER_STEPCA_INIT_ACME=true ports: - "9000:9000" networks: default: aliases: - root-ca.castle proxy: labels: - traefik.enable=false image: traefik-trust-sandcastle-ca build: dockerfile: proxy.Dockerfile volumes: - /var/run/docker.sock:/var/run/docker.sock - ./volumes/proxy/:/etc/traefik/ ports: - '80:80' - '443:443' networks: default: aliases: - dashboard.castle # the traefik monitoring dashboard - host.castle # proxy to a service running on the docker host fingerprint: # get the fingerprint of the CA root certificate, so you can add it to system trust stores profiles: - trust image: smallstep/step-cli:0.25.0 volumes: - './volumes/root-ca/certs:/home/step/certs:ro' command: - step - certificate - fingerprint - /home/step/certs/root_ca.crt networks: default: fediverse: