feat: Initial commit.
This commit is contained in:
39
compose.yaml
Normal file
39
compose.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
container_name: gitea-postgres
|
||||||
|
image: docker.io/postgres:16.2-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
volumes:
|
||||||
|
- /opt/gitea/postgres-data:/var/lib/postgresql/data:z
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
container_name: gitea
|
||||||
|
image: docker.io/gitea/gitea:1.23
|
||||||
|
env_file: .env
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
- proxy
|
||||||
|
volumes:
|
||||||
|
- /home/git/.ssh:/data/git/.ssh # ssh pass-through from host.
|
||||||
|
- ${DATA_MNT}:/data
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "2222:22" # ssh port for git://
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
backend:
|
||||||
|
external: true
|
||||||
15
example.env
Normal file
15
example.env
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
USER_UID=1001
|
||||||
|
USER_GID=1001
|
||||||
|
|
||||||
|
GITEA__database__DB_TYPE=postgres
|
||||||
|
GITEA__database__HOST=postgres:5432
|
||||||
|
GITEA__database__NAME=gitea
|
||||||
|
GITEA__database__USER=gitea
|
||||||
|
GITEA__database__PASSWD=secret
|
||||||
|
GITEA__server__SSH_PORT=2222
|
||||||
|
|
||||||
|
POSTGRES_USER=gitea
|
||||||
|
POSTGRES_DB=gitea
|
||||||
|
POSTGRES_PASSWORD=secret
|
||||||
|
|
||||||
|
DATA_MNT=/mnt
|
||||||
Reference in New Issue
Block a user