-
-
Save qmdx00/f11e443a365984b3b249afb6ee7458d6 to your computer and use it in GitHub Desktop.
gogs docker-compose
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: '3.3' | |
services: | |
gogsdb: | |
image: mysql:latest | |
container_name: gogsdb | |
restart: always | |
environment: | |
MYSQL_DATABASE: gogs | |
MYSQL_ROOT_PASSWORD: gogs | |
MYSQL_USER: gogs | |
MYSQL_PASSWORD: gogs | |
command: --default-authentication-plugin=mysql_native_password | |
volumes: | |
- $PWD/db:/var/lib/mysql_gogs | |
ports: | |
- "13306:3306" | |
networks: | |
- gogs-network | |
gogsapp: | |
depends_on: | |
- gogsdb | |
image: gogs/gogs | |
container_name: gogsapp | |
restart: always | |
ports: | |
- "322:22" | |
- "3000:3000" | |
volumes: | |
- $PWD/app:/data | |
networks: | |
- gogs-network | |
networks: | |
gogs-network: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment