49 lines
938 B
YAML
49 lines
938 B
YAML
version: "3.9"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
net:
|
|
external: false
|
|
|
|
services:
|
|
gitea-db:
|
|
image: lscr.io/linuxserver/mariadb:latest
|
|
container_name: gitea-db
|
|
restart: always
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Berlin
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
- MYSQL_DATABASE=db
|
|
- MYSQL_USER=user
|
|
- MYSQL_PASSWORD=password
|
|
volumes:
|
|
- ./db:/config
|
|
expose:
|
|
- 3306
|
|
networks:
|
|
- net
|
|
|
|
gitea:
|
|
image: gitea/gitea:1.15
|
|
container_name: gitea
|
|
restart: always
|
|
depends_on:
|
|
- gitea-db
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- DISABLE_REGISTRATION=true
|
|
- SHOW_REGISTRATION_BUTTOM=false
|
|
- GITEA__log__LEVEL=error
|
|
volumes:
|
|
- ./data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/locatime:ro
|
|
expose:
|
|
- 3000
|
|
networks:
|
|
- net
|
|
- proxy
|