allow localhost ports

This commit is contained in:
Daylin Morgan 2023-01-31 15:23:07 -06:00
parent 63ea9fda6b
commit 27083777c2
2 changed files with 13 additions and 15 deletions

View file

@ -1,3 +1,7 @@
git.dayl.in { git.dayl.in {
reverse_proxy gitea:3000 reverse_proxy 127.0.0.1:3000
}
resunim.dayl.in {
reverse_proxy 127.0.0.1:8080
} }

View file

@ -1,9 +1,5 @@
version: "3" version: "3"
networks:
gitea:
external: false
services: services:
gitea: gitea:
image: gitea/gitea:1.18.3 image: gitea/gitea:1.18.3
@ -12,32 +8,30 @@ services:
- USER_UID=1001 - USER_UID=1001
- USER_GID=1001 - USER_GID=1001
restart: always restart: always
networks:
- gitea
volumes: volumes:
- ./gitea:/data - ./gitea:/data
- /home/git/.ssh/:/data/git/.ssh - /home/git/.ssh/:/data/git/.ssh
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "3000:3000" - "127.0.0.1:3000:3000"
- "222:22" - "127.0.0.0:222:22"
- "127.0.0.1:2222:22" - "127.0.0.1:2222:22"
caddy: caddy:
image: caddy:2.5.2-alpine image: caddy:2.5.2-alpine
restart: unless-stopped restart: unless-stopped
container_name: caddy container_name: caddy
networks: # ports:
- gitea # - "80:80"
ports: # - "443:443"
- "80:80" # - "443:443/udp"
- "443:443" # - "127.0.0.1:8080:8080"
- "443:443/udp"
volumes: volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile - ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data - caddy_data:/data
- caddy_config:/config - caddy_config:/config
network_mode: host
soft-serve: soft-serve:
image: charmcli/soft-serve:v0.4.4 image: charmcli/soft-serve:v0.4.4