Created
July 27, 2023 06:14
-
-
Save mkakh/deb74e10d41e07439c8c782f3a85f827 to your computer and use it in GitHub Desktop.
docker-compose.yml for gogs.
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
# About the settings of gogs, see https://github.com/gogs/gogs/tree/main/docker. | |
# The host of db is the container's name such as gogs-db-1 | |
version: '3' | |
services: | |
db: | |
image: postgres:latest | |
environment: | |
- POSTGRES_USER=gogs | |
- POSTGRES_PASSWORD=##### | |
- POSTGRES_DB=gogs | |
volumes: | |
- ./dbdata:/var/lib/postgresql/data | |
restart: always | |
gogs: | |
image: gogs/gogs | |
ports: | |
- "10880:3000" | |
- "10022:22" | |
depends_on: | |
- db | |
volumes: | |
- ./data:/data | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment