21 lines
509 B
YAML
21 lines
509 B
YAML
version: '3.8'
|
|
|
|
volumes:
|
|
gitea_data:
|
|
|
|
services:
|
|
server:
|
|
image: docker.gitea.com/gitea:latest
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- TZ=America/New_York
|
|
restart: unless-stopped
|
|
volumes:
|
|
- gitea_data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3131:3000" # Web UI - change host port if 3000 is in use
|
|
- "2222:22" # SSH - mapped to avoid host SSH conflict |