2023-05-26 12:05:53 -07:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
2023-06-19 11:27:48 -07:00
|
|
|
|
|
|
|
gitea-server:
|
2023-06-15 16:42:42 -07:00
|
|
|
image: gitea/gitea:1.19.3
|
2023-05-26 12:05:53 -07:00
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
USER_UID: 1000
|
|
|
|
USER_GID: 1000
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
|
|
|
- ./gitea-data:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
- "222:22"
|
|
|
|
|
2023-06-19 11:27:48 -07:00
|
|
|
gitea-cloudflared:
|
|
|
|
container_name: cloudflared-gitea
|
|
|
|
image: cloudflare/cloudflared
|
|
|
|
restart: unless-stopped
|
2023-06-21 02:28:39 -07:00
|
|
|
command: tunnel run
|
2023-06-19 11:27:48 -07:00
|
|
|
environment:
|
|
|
|
- TUNNEL_TOKEN=${GITEA_TUNNEL_TOKEN}
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
|