websoft9/docker/w9gitea/docker-compose.yml
2023-09-15 09:16:20 +08:00

30 lines
656 B
YAML

# image: https://hub.docker.com/r/gitea/gitea
# docs: https://docs.gitea.io/zh-cn/install-with-docker
# gitea admin user create --admin --username websoft9 --random-password --email help@websoft9.com
version: '3.8'
services:
gitea:
container_name: $APP_NAME
image: websoft9dev/portainer:1.20.4
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- .env
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "$APP_HTTP_PORT:3000"
networks:
default:
name: ${APP_NETWORK}
external: true
volumes:
gitea: