Added gitea
This commit is contained in:
42
docker/docker-02/gitea/compose.yaml
Normal file
42
docker/docker-02/gitea/compose.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
services:
|
||||
gitea:
|
||||
image: docker.gitea.com/gitea:1.25.3
|
||||
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=${POSTGRES_PASSWORD}
|
||||
networks:
|
||||
- gitea
|
||||
- newt
|
||||
volumes:
|
||||
- /opt/containers/gitea/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: docker.io/library/postgres:14
|
||||
container_name: gitea-db
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /opt/containers/gitea/postgres:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
newt:
|
||||
external: true
|
||||
Reference in New Issue
Block a user