This guide uses Docker Compose to run Gogs.
For Docker installation, see Docker.
mkdir -p /opt/gogs
cd /opt/gogs
Create a docker-compose.yml file:
services:
gogs:
image: gogs/gogs:latest
container_name: gogs
restart: unless-stopped
ports:
- "3000:3000"
- "2222:22"
volumes:
- ./gogs-data:/data
docker compose up -d
http://localhost:3000gogs/gogs (Docker Hub)Any questions?
Feel free to contact us. Find all contact information on our contact page.