2022-12-30 14:12:01 +01:00
|
|
|
version: "3"
|
2022-12-07 14:33:00 +01:00
|
|
|
|
2022-12-30 14:12:01 +01:00
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: gitea/gitea:1.17.4
|
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEA__database__DB_TYPE=mysql
|
|
|
|
- GITEA__server__DOMAIN=${DOMAIN}
|
|
|
|
- GITEA__database__HOST=10.10.10.2:3306
|
|
|
|
- GITEA__database__NAME=gitea
|
|
|
|
- GITEA__database__USER=gitea
|
|
|
|
- GITEA__database__PASSWD=gitea
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
|
|
|
- ./data:/root/gitea
|
|
|
|
- ./config:/root/gitea/config
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /mnt/volume:/data
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
- "222:22"
|