Skip to content

Instantly share code, notes, and snippets.

@Code-Hex
Created July 25, 2017 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Code-Hex/04655b0adb9e68d6b293f9891da0de4b to your computer and use it in GitHub Desktop.
Save Code-Hex/04655b0adb9e68d6b293f9891da0de4b to your computer and use it in GitHub Desktop.
docker-compose.yml for gogs
version: '2'
services:
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
environment:
- DB_USER=gogs
- DB_PASS=Kamikawa1234
- DB_NAME=gogs_production
- DB_EXTENSION=pg_trgm
gogs:
restart: always
image: gogs/gogs
depends_on:
- postgresql
ports:
- "8081:3000"
- "8085:22"
links:
- postgresql
volumes:
- /srv/docker/gogs:/data:Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment