Last active
November 15, 2019 06:29
-
-
Save M4R14/571eb6930c07d8dbf2c81837e15291ab to your computer and use it in GitHub Desktop.
รัน gogs ทำ Git Server เอง
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.7" | |
| services: | |
| gogs: | |
| image: gogs/gogs | |
| ports: | |
| - "10022:22" | |
| - "10080:3000" | |
| volumes: | |
| - ./gogs:/data | |
| db: | |
| image: mysql | |
| command: --default-authentication-plugin=mysql_native_password | |
| restart: always | |
| volumes: | |
| - ./db/mysql:/var/lib/mysql | |
| environment: | |
| MYSQL_DATABASE: gogs | |
| MYSQL_ROOT_PASSWORD: 123456 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment