Add traefik

This commit is contained in:
Gal 2023-12-30 17:50:04 +01:00
parent 6674b1f85a
commit 6de0876776
Signed by: gal
GPG Key ID: F035BC65003BC00B
3 changed files with 15 additions and 3 deletions

0
gitea/README.md Normal file
View File

View File

@ -24,10 +24,18 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "100.104.163.2:4003:3000"
- "4003:3000"
- "222:22"
depends_on:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.quartz.rule=Host(`git.velouria.dev`)"
- "traefik.http.routers.quartz.entrypoints=websecure"
- "traefik.http.routers.quartz.tls.certresolver=myresolver"
- "traefik.http.services.quartz.loadbalancer.server.port=4003"
networks:
- traefik_network
db:
image: postgres:14
@ -40,3 +48,7 @@ services:
- gitea
volumes:
- ./postgres:/var/lib/postgresql/data
networks:
traefik_network:
external: true

View File

@ -9,6 +9,6 @@ services:
ports:
- "100.104.163.2:4001:3000"
volumes:
- /path/to/config:/app/config # Make sure your local config directory exists
- ${PWD}/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock:ro # optional, for docker integrations
restart: unless-stopped