Last active
December 30, 2015 17:46
-
-
Save jahands/60bf051e5785fa5e904e to your computer and use it in GitHub Desktop.
Use gogs and posgres via docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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