Created
January 14, 2019 16:02
-
-
Save qtopie/44874e8f376054174ab255a59c8e974e to your computer and use it in GitHub Desktop.
gogs docker compose
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
version: '3' | |
services: | |
postgres: | |
image: postgres:11 | |
restart: always | |
environment: | |
- "POSTGRES_USER=postgres" | |
- "POSTGRES_PASSWORD=postgres1234" | |
- "POSTGRES_DB=gogs" | |
volumes: | |
- "db-data:/var/lib/postgresql/data" | |
networks: | |
- gogs | |
gogs: | |
image: gogs/gogs:latest | |
restart: always | |
ports: | |
- "10022:22" | |
- "3000:3000" | |
links: | |
- postgres | |
environment: | |
- "RUN_CROND=true" | |
networks: | |
- gogs | |
volumes: | |
- "gogs-data:/data" | |
depends_on: | |
- postgres | |
networks: | |
gogs: | |
driver: bridge | |
volumes: | |
db-data: | |
driver: local | |
gogs-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment