commit ab10ee3f5173ec33c554692ea7e93146feb3ad69 Author: mal0 Date: Fri Jul 4 20:22:57 2025 +0000 initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ca37489 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,59 @@ +--- +services: + server: + image: docker.io/gitea/gitea:latest + container_name: gitea-server + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432} + - GITEA__database__NAME=${POSTGRES_DB:?POSTGRES_DB not set} + - GITEA__database__USER=${POSTGRES_USER:?POSTGRES_USER not set} + - GITEA__database__PASSWD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD not set} + - GITEA__server__SSH_PORT=2221 + - GITEA__server__ROOT_URL=https://gitshop.cc + volumes: + - gitea-data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "2221:22" + depends_on: + - db + labels: + - traefik.enable=true + - traefik.http.services.gitea.loadbalancer.server.port=3000 + - traefik.http.services.gitea.loadbalancer.server.scheme=http + - traefik.http.routers.gitea-https.entrypoints=websecure + - traefik.http.routers.gitea-https.rule=Host(`gitshop.cc`) # <-- Replace with your FQDN + - traefik.http.routers.gitea-https.tls=true + - traefik.http.routers.gitea-https.tls.certresolver=cloudflare # <-- Replace with your certresolver + networks: + - frontend + - backend + restart: unless-stopped + + db: + image: docker.io/library/postgres:17.5 + container_name: gitea-db + environment: + - POSTGRES_USER=${POSTGRES_USER:?POSTGRES_USER not set} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD not set} + - POSTGRES_DB=${POSTGRES_DB:?POSTGRES_DB not set} + networks: + - backend + volumes: + - gitea-db:/var/lib/postgresql/data + restart: unless-stopped + +volumes: + gitea-data: + driver: local + gitea-db: + driver: local + +networks: + frontend: + backend: diff --git a/public/assets/img/logo.png b/public/assets/img/logo.png new file mode 100644 index 0000000..38b462e Binary files /dev/null and b/public/assets/img/logo.png differ diff --git a/public/assets/img/logo.svg b/public/assets/img/logo.svg new file mode 100755 index 0000000..cf6e797 --- /dev/null +++ b/public/assets/img/logo.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + +