Skip to content

Instantly share code, notes, and snippets.

@jahands
Last active December 30, 2015 17:46
Show Gist options
  • Save jahands/60bf051e5785fa5e904e to your computer and use it in GitHub Desktop.
Save jahands/60bf051e5785fa5e904e to your computer and use it in GitHub Desktop.
Use gogs and posgres via docker
sudo docker run --name gogs-postgres \
-e POSTGRES_USER=git \
-e POSTGRES_PASSWORD=Passw0rd \
-e POSTGRES_DB=gogs \
-d postgres
sudo docker run --name=gogs \
-p 10022:22 \
-p 10080:3000 \
-v /var/gogs:/data \
--link gogs-postgres:postgres \
-d gogs/gogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment