Add basic ansible stuff for management
acme-dns is fully handled by ansible already. All services should be created by ansible in the end.
This commit is contained in:
		
							parent
							
								
									607ad23697
								
							
						
					
					
						commit
						7ff7dfe807
					
				
					 16 changed files with 162 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -66,7 +66,7 @@ services:
 | 
			
		|||
	networks:
 | 
			
		||||
	  apps:
 | 
			
		||||
		aliases:
 | 
			
		||||
		  - ${SERVICE_NAME}
 | 
			
		||||
		  - ${NAME}
 | 
			
		||||
networks:
 | 
			
		||||
  apps:
 | 
			
		||||
	external: true
 | 
			
		||||
| 
						 | 
				
			
			@ -78,10 +78,10 @@ if [ ! -d "${caddy_path}" ]; then
 | 
			
		|||
	caddy_path="caddy/config/conf.d"
 | 
			
		||||
fi
 | 
			
		||||
if [ -d "${caddy_path}" ]; then
 | 
			
		||||
cat <<EOF > "$caddy_path/${DOMAIN}.config"
 | 
			
		||||
cat <<EOF > "$caddy_path/${DOMAIN}.conf"
 | 
			
		||||
${DOMAIN} {
 | 
			
		||||
  import default
 | 
			
		||||
  reverse_proxy ${SERVICE_NAME}:${PORT}
 | 
			
		||||
  reverse_proxy ${NAME}:${PORT}
 | 
			
		||||
}
 | 
			
		||||
EOF
 | 
			
		||||
else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue