2022-11-27 00:27:06 +08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gitea:
|
2023-04-05 13:51:27 +08:00
|
|
|
name: gitea
|
|
|
|
driver:
|
|
|
|
bridge
|
2022-11-27 00:27:06 +08:00
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
2023-04-05 13:51:27 +08:00
|
|
|
gitea:
|
2022-11-27 00:27:06 +08:00
|
|
|
image: gitea/gitea:dev
|
|
|
|
container_name: gitea
|
|
|
|
environment:
|
2023-04-05 13:51:27 +08:00
|
|
|
USER_UID: 1000
|
|
|
|
USER_GID: 1000
|
|
|
|
TZ:
|
|
|
|
TERM:
|
2022-11-27 00:27:06 +08:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
2023-03-29 10:00:48 +08:00
|
|
|
- ${DIR:-.}/gitea/data:/data
|
2022-11-27 00:27:06 +08:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- "1080:3000"
|
2023-04-05 13:51:27 +08:00
|
|
|
- "10022:22"
|