Run with POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-compose up -d
-
-
Save Violetdusk/a84508844212edc32fe1cbff67082196 to your computer and use it in GitHub Desktop.
Gogs docker-compose.yml
This file contains 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: '2' | |
services: | |
postgres: | |
image: postgres:9.5 | |
restart: always | |
environment: | |
- "POSTGRES_USER=${POSTGRES_USER}" | |
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" | |
- "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