2023-09-08 16:35:37 +08:00
|
|
|
# image: https://hub.docker.com/r/gitea/gitea
|
|
|
|
# docs: https://docs.gitea.io/zh-cn/install-with-docker
|
2023-09-15 09:16:20 +08:00
|
|
|
# gitea admin user create --admin --username websoft9 --random-password --email help@websoft9.com
|
2023-09-08 16:35:37 +08:00
|
|
|
|
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
2023-09-19 16:14:00 +08:00
|
|
|
git:
|
2023-09-08 16:35:37 +08:00
|
|
|
container_name: $APP_NAME
|
2023-09-19 16:14:00 +08:00
|
|
|
image: websoft9dev/git:$APP_VERSION
|
2023-09-18 17:13:15 +08:00
|
|
|
restart: always
|
2023-09-08 16:35:37 +08:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes:
|
2023-09-19 16:14:00 +08:00
|
|
|
- git:/data
|
2023-09-08 16:35:37 +08:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-09-18 17:13:15 +08:00
|
|
|
ports:
|
|
|
|
- 9001-9999:3000
|
|
|
|
labels:
|
|
|
|
com.docker.compose.w9_http.port: 3000
|
2023-09-08 16:35:37 +08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: ${APP_NETWORK}
|
2023-09-12 16:17:54 +08:00
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
2023-09-19 16:14:00 +08:00
|
|
|
git:
|