first commit. initial file upload commit.

This commit is contained in:
angel
2026-03-12 16:51:17 -04:00
parent cecd360872
commit aec9feddea
3 changed files with 79 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
# --- General Configuration ---
TZ=America/New_York
USER_UID=1000
USER_GID=1000
# --- Database (Postgres) Configuration ---
POSTGRES_USER=gitea
POSTGRES_PASSWORD=gitea
POSTGRES_DB=gitea
# --- Gitea Configuration ---
GITEA__database__DB_TYPE=postgres
GITEA__database__HOST=postgres:5432
GITEA__database__NAME=gitea
GITEA__database__USER=gitea
GITEA__database__PASSWD=gitea
GITEA__server__PROTOCOL=http
GITEA__server__DOMAIN=git.example.com # Update with your domain
GITEA__server__ROOT_URL=https://git.example.com/ # Update with your domain
GITEA__server__HTTP_PORT=3000
GITEA__server__SSH_PORT=2222
GITEA_CUSTOM=/data/gitea
# --- pgAdmin Configuration ---
PGADMIN_DEFAULT_EMAIL=admin@example.com # Update with your email
PGADMIN_DEFAULT_PASSWORD=gitea
PGADMIN_CONFIG_LOGIN_BANNER=Authorized access only
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True
+1 -1
View File
@@ -1,3 +1,3 @@
# gitea # Gitea
Docker files and documentation to self host gitea. Docker files and documentation to self host gitea.
+49
View File
@@ -0,0 +1,49 @@
services:
postgres:
image: postgres:16
container_name: gitea-postgres
restart: unless-stopped
env_file:
- .env
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- gitea-net
# Do NOT publish postgres port
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: unless-stopped
depends_on:
- postgres
env_file:
- .env
volumes:
- gitea-data:/data
ports:
- "3000:3000" # HTTP (for NPM)
- "2222:22" # SSH (optional, safe non-standard port)
networks:
- gitea-net
pgadmin:
image: dpage/pgadmin4:latest
container_name: gitea-pgadmin
restart: unless-stopped
env_file:
- .env
volumes:
- pgadmin-data:/var/lib/pgadmin
ports:
- "8081:80" # pgAdmin UI (proxy or restrict)
networks:
- gitea-net
networks:
gitea-net:
volumes:
gitea-data:
postgres-data:
pgadmin-data: