Skip to content

Instantly share code, notes, and snippets.

@mkakh
Created July 27, 2023 06:14
Show Gist options
  • Save mkakh/deb74e10d41e07439c8c782f3a85f827 to your computer and use it in GitHub Desktop.
Save mkakh/deb74e10d41e07439c8c782f3a85f827 to your computer and use it in GitHub Desktop.
docker-compose.yml for gogs.
# About the settings of gogs, see https://github.com/gogs/gogs/tree/main/docker.
# The host of db is the container's name such as gogs-db-1
version: '3'
services:
db:
image: postgres:latest
environment:
- POSTGRES_USER=gogs
- POSTGRES_PASSWORD=#####
- POSTGRES_DB=gogs
volumes:
- ./dbdata:/var/lib/postgresql/data
restart: always
gogs:
image: gogs/gogs
ports:
- "10880:3000"
- "10022:22"
depends_on:
- db
volumes:
- ./data:/data
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment