summaryrefslogblamecommitdiffstats
path: root/docker-compose.yml
blob: cf641da72ec9e09ea53dd3057d55c72476b94af5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                      
                                                                     


                                                 



                          

        






                                                 

              
                

                                                                       
  










                                                                                                         

         
          

            
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
    ports:
      - "9000:9000"
    networks:
      default:
        aliases:
          - root-ca.castle
  
  proxy:
    image: traefik:v2.5
    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: