Added initial dockerfile
This commit is contained in:
commit
adbe09ad07
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
caddy/config
|
||||
caddy/data
|
||||
gitea
|
||||
registryPassword.txt
|
||||
registry
|
||||
11
caddy/Caddyfile
Normal file
11
caddy/Caddyfile
Normal file
@ -0,0 +1,11 @@
|
||||
git.jaub.cloud {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
registry.jaub.cloud {
|
||||
reverse_proxy registry:5000
|
||||
basicauth {
|
||||
jaub $2a$14$nUxviO91DRsdIgBTT12/tun2gjg2LxYZIuPy7oZ/d39rQcGxXGAqa
|
||||
user $2a$14$nUxviO91DRsdIgBTT12/tun2gjg2LxYZIuPy7oZ/d39rQcGxXGAqa
|
||||
}
|
||||
}
|
||||
59
docker-compose.yml
Normal file
59
docker-compose.yml
Normal file
@ -0,0 +1,59 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2-alpine # Lighter image
|
||||
container_name: caddy
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./caddy/data:/data
|
||||
- ./caddy/config:/config
|
||||
networks:
|
||||
- devops
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M # Reduced from 256M
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
restart: always
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- ROOT_URL=https://git.jaub.cloud
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
networks:
|
||||
- devops
|
||||
expose:
|
||||
- "3000"
|
||||
- "2221:22"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 384M # Reduced from 512M (requires Gitea optimizations)
|
||||
|
||||
registry:
|
||||
image: registry:latest # Alpine variant
|
||||
container_name: registry
|
||||
restart: always
|
||||
volumes:
|
||||
- ./registry:/var/lib/registry
|
||||
networks:
|
||||
- devops
|
||||
expose:
|
||||
- "5000"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M # Reduced from 256M
|
||||
|
||||
networks:
|
||||
devops:
|
||||
driver: bridge
|
||||
Loading…
x
Reference in New Issue
Block a user