Add initial infrastructure configuration
This commit is contained in:
@@ -0,0 +1 @@
|
||||
apps: []
|
||||
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2
|
||||
container_name: appfactory-caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ../gateway/Caddyfile:/etc/caddy/Caddyfile
|
||||
- ../data/caddy:/data
|
||||
- ../data/caddy-config:/config
|
||||
networks:
|
||||
- appfactory
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: appfactory-gitea
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__server__ROOT_URL=http://192.168.66.130:3000/
|
||||
- GITEA__server__SSH_PORT=2222
|
||||
volumes:
|
||||
- ../data/gitea:/data
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:22"
|
||||
networks:
|
||||
- appfactory
|
||||
|
||||
registry:
|
||||
image: registry:2
|
||||
container_name: appfactory-registry
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../data/registry:/var/lib/registry
|
||||
ports:
|
||||
- "5000:5000"
|
||||
networks:
|
||||
- appfactory
|
||||
|
||||
networks:
|
||||
appfactory:
|
||||
name: appfactory
|
||||
@@ -0,0 +1,11 @@
|
||||
:80 {
|
||||
handle_path /git/* {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
handle_path /registry/* {
|
||||
reverse_proxy registry:5000
|
||||
}
|
||||
|
||||
respond /health "AppFactory OK" 200
|
||||
}
|
||||
Reference in New Issue
Block a user