Run with POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-compose up -d
-
-
Save sly01/526580cb488d70d2ba2d384e81928cec 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: '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