summaryrefslogblamecommitdiffstats
path: root/docker-compose.yml
blob: 2c8f43f84b92652522bf4542dfce1f88453fab16 (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
      - DOCKER_STEPCA_INIT_ACME=true
    ports:
      - "9000:9000"
    networks:
      default:
        aliases:
          - root-ca.castle
  
  proxy:
    image: traefik-trust-root-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: