Initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.env
|
||||
.DS_Store
|
||||
1
data/etc/Caddyfile
Normal file
1
data/etc/Caddyfile
Normal file
@@ -0,0 +1 @@
|
||||
import /etc/caddy/conf.d/*.conf
|
||||
11
data/etc/conf.d/auth.conf
Normal file
11
data/etc/conf.d/auth.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
auth.mtst.tec.br {
|
||||
handle /realms/* {
|
||||
reverse_proxy http://keycloak:9090
|
||||
}
|
||||
handle /resources/* {
|
||||
reverse_proxy http://keycloak:9090
|
||||
}
|
||||
handle /admin* {
|
||||
reverse_proxy http://keycloak:9090
|
||||
}
|
||||
}
|
||||
3
data/etc/conf.d/git.conf
Normal file
3
data/etc/conf.d/git.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
git.mtst.tec.br {
|
||||
reverse_proxy http://gitea:3000
|
||||
}
|
||||
23
docker-compose.yaml
Normal file
23
docker-compose.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:latest
|
||||
restart: unless-stopped
|
||||
container_name: caddy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
volumes:
|
||||
- ./data/etc:/etc/caddy
|
||||
- ./data/docroot:/srv
|
||||
- caddy_data:/data # guarda coisas importantes, mas q nao precisa olhar no dia-a-dia
|
||||
- caddy_config:/config # idem
|
||||
networks:
|
||||
- infra
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
networks:
|
||||
infra:
|
||||
external: true
|
||||
name: infra
|
||||
Reference in New Issue
Block a user