init
This commit is contained in:
53
roles/vps/templates/docker-compose.gitea.yaml.j2
Normal file
53
roles/vps/templates/docker-compose.gitea.yaml.j2
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
version: '2'
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=y86ene95KGXq%8Bq^9bx^Qme
|
||||
- DISABLE_REGISTRATION=true
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.frontend.rule=Host:git.eichner.cc"
|
||||
- "traefik.port=3000"
|
||||
- "traefik.backend=git"
|
||||
- "traefik.frontend.entryPoints=https"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
||||
networks:
|
||||
- gitea
|
||||
- traefik
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=y86ene95KGXq%8Bq^9bx^Qme
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
driver: bridge
|
||||
traefik:
|
||||
external: true
|
||||
Reference in New Issue
Block a user