Add usage
This commit is contained in:
		
					parent
					
						
							
								b083f2b89c
							
						
					
				
			
			
				commit
				
					
						1db8814b61
					
				
			
		
					 2 changed files with 74 additions and 4 deletions
				
			
		|  | @ -1,7 +1,6 @@ | |||
| Quick tutorial: | ||||
| 1. set `DOMAINS` and `SERVER_x` (can be multiple) | ||||
| 2. run | ||||
| 3. good to go | ||||
| This container complements ["static-website-assistant"](https://git.m724.eu/Minecon724/static-website-assistant) with certificates. | ||||
| 
 | ||||
| For usage example see [docker-compose.yml](docker-compose.yml). | ||||
| 
 | ||||
| Quirks: | ||||
| - alpha | ||||
|  |  | |||
							
								
								
									
										71
									
								
								docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,71 @@ | |||
| services: | ||||
|   renewer: | ||||
|     build: | ||||
|       context: . | ||||
|       dockerfile: Containerfile | ||||
|     environment: | ||||
|       DOMAINS: auto-site.testing.m724.eu | ||||
|       SERVER_one: https://one.control.internal Tr0ub4dor&3 | ||||
|       SERVER_two: https://two.control.internal correct horse battery staple | ||||
|     networks: | ||||
|       - network | ||||
|     volumes: | ||||
|       - ./run/acme:/acme.sh | ||||
|       - ./run/trusted-certificates:/trusted-certificates:ro | ||||
| 
 | ||||
|   webserver_one: | ||||
|     image: git.m724.eu/minecon724/static-website-assistant:master | ||||
|     build: | ||||
|       context: server | ||||
|       dockerfile: Containerfile | ||||
|     environment: | ||||
|       DOMAIN: website.internal | ||||
|       SERVER_ID: one | ||||
|       ACME_CHALLENGE_URL: http://renewer/.well-known/acme-challenge | ||||
|       CONTROL_DOMAIN: one.control.internal | ||||
|       CONTROL_TOKEN: Tr0ub4dor&3 | ||||
|     depends_on: | ||||
|       - renewer | ||||
|     networks: | ||||
|       network: | ||||
|         aliases: | ||||
|           - one.control.internal | ||||
|     ports: | ||||
|       - "8080:80" | ||||
|       - "8443:443" | ||||
|       - "8443:443/udp" | ||||
|     volumes: | ||||
|       - ./run/one/html:/var/www/html:ro | ||||
|       - ./run/one/certs:/etc/ssl/certs:ro | ||||
| 
 | ||||
|   webserver_two: | ||||
|     image: git.m724.eu/minecon724/static-website-assistant:master | ||||
|     environment: | ||||
|       DOMAIN: website.internal | ||||
|       SERVER_ID: two | ||||
|       ACME_CHALLENGE_URL: http://renewer/.well-known/acme-challenge | ||||
|       CONTROL_DOMAIN: two.control.internal | ||||
|       CONTROL_TOKEN: correct horse battery staple | ||||
|     depends_on: | ||||
|       - renewer | ||||
|     networks: | ||||
|       network: | ||||
|         aliases: | ||||
|           - two.control.internal | ||||
|     ports: | ||||
|       - "9080:80" | ||||
|       - "9443:443" | ||||
|       - "9443:443/udp" | ||||
|     volumes: | ||||
|       - ./run/two/html:/var/www/html:ro | ||||
|       - ./run/two/certs:/etc/ssl/certs:ro | ||||
|       - ./run/two/reload:/var/run/nginx-reload | ||||
| 
 | ||||
|   debug: | ||||
|     image: docker.io/debian:latest | ||||
|     command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' | ||||
|     networks: | ||||
|       - network | ||||
| 
 | ||||
| networks: | ||||
|   network: | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Minecon724
				Minecon724