38 lines
1.1 KiB
YAML
Executable File
38 lines
1.1 KiB
YAML
Executable File
version: "3.7"
|
|
|
|
services:
|
|
|
|
###########################################################################
|
|
###########################################################################
|
|
##
|
|
## Docker Compose File: Gitea Services
|
|
## Function: Run Gitea Services
|
|
##
|
|
###########################################################################
|
|
###########################################################################
|
|
|
|
gitea:
|
|
image: gitea/gitea:1.21.11
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=mysql
|
|
- GITEA__database__HOST=mariadb:3306
|
|
- GITEA__database__NAME=gitea
|
|
- GITEA__database__USER=gitea
|
|
- GITEA__database__PASSWD=freemind596
|
|
restart: always
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- /home/albus/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "4002:3000"
|
|
- "2222:22"
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
restart: true |