Last active
April 20, 2016 02:03
-
-
Save uyorum/208fb37fe2c6e9e8bbe3dba2f3522de4 to your computer and use it in GitHub Desktop.
docker-compose.yml which starts gogs and drone
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
gogs: | |
image: gogs/gogs | |
ports: | |
- "8080:8080" | |
- "10022:22" | |
volumes_from: | |
- gogs_data | |
links: | |
- gogs_db:gogs_db | |
gogs_data: | |
image: busybox | |
command: /bin/sh | |
volumes: | |
- /data | |
gogs_db: | |
image: mysql:5.5 | |
volumes_from: | |
- gogs_dbdata | |
environment: | |
- MYSQL_ROOT_PASSWORD=password | |
- MYSQL_DATABASE=gogs | |
gogs_dbdata: | |
image: busybox | |
command: /bin/sh | |
volumes: | |
- /var/lib/mysql | |
drone: | |
image: drone/drone | |
ports: | |
- "8000:8000" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
links: | |
- gogs:gogs | |
- drone_db:drone_db | |
environment: | |
- GIN_MODE=release | |
- REMOTE_DRIVER=gogs | |
- REMOTE_CONFIG=http://gogs:8080?open=true&skip_verify=true | |
- DATABASE_DRIVER=mysql | |
- DATABASE_CONFIG=root:password@tcp(drone_db:3306)/drone?parseTime=true | |
- DEBUG=true | |
drone_db: | |
image: mysql:5.5 | |
volumes_from: | |
- drone_dbdata | |
environment: | |
- MYSQL_ROOT_PASSWORD=password | |
- MYSQL_DATABASE=drone | |
drone_dbdata: | |
image: busybox | |
command: /bin/sh | |
volumes: | |
- /var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment