Run with POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-compose up -d
-
-
Save thurt/ec227a7e9231841545c8999873419929 to your computer and use it in GitHub Desktop.
Gogs docker-compose.yml
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:9.5 | |
restart: always | |
environment: | |
- POSTGRES_USER=${POSTGRES_USER-root} | |
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD-root} | |
- POSTGRES_DB=gogs | |
volumes: | |
- "gogs-db-data:/var/lib/postgresql/data" | |
gogs: | |
image: gogs/gogs:0.11.34 | |
restart: always | |
ports: | |
- "10022:22" | |
- "3000:3000" | |
depends_on: | |
- postgres | |
environment: | |
- "RUN_CROND=true" | |
volumes: | |
- "gogs-data:/data" | |
depends_on: | |
- postgres | |
networks: | |
default: | |
external: | |
name: dev_bridge | |
volumes: | |
gogs-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