30 lines
736 B
YAML
30 lines
736 B
YAML
version: "3"
|
|
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=mysql
|
|
- GITEA__database__HOST=192.168.1.208:3306
|
|
- GITEA__database__NAME=giteadb
|
|
- GITEA__database__USER=gitea
|
|
- GITEA__database__PASSWD=AlphaOmega1
|
|
- ROOT_URL=https://gitea.mykron.net
|
|
- DOMAIN=gitea.mykron.net
|
|
restart: always
|
|
volumes:
|
|
- /mnt/gitea:/data
|
|
- /etc/timezone:/etc/timezone
|
|
- /etc/localtime:/etc/localtime
|
|
ports:
|
|
- target: 3000
|
|
published: 3000
|
|
protocol: tcp
|
|
mode: host
|
|
- target: 22
|
|
published: 222
|
|
protocol: tcp
|
|
mode: host |