Created
June 21, 2019 15:21
-
-
Save Darkflib/bb1bf45743a2037c5078c900cc641923 to your computer and use it in GitHub Desktop.
drone.io
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: "2" | |
networks: | |
gitea: | |
external: false | |
services: | |
gitea: | |
image: gitea/gitea:latest | |
environment: | |
- USER_UID=1000 | |
- USER_GID=1000 | |
- DB_TYPE=mysql | |
- DB_HOST=db:3306 | |
- DB_NAME=gitea | |
- DB_USER=gitea | |
- DB_PASSWD=gitea | |
restart: always | |
networks: | |
- gitea | |
volumes: | |
- ./gitea:/data | |
ports: | |
- "3000:3000" | |
- "2222:22" | |
db: | |
image: mysql:5.7 | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD=gitea | |
- MYSQL_USER=gitea | |
- MYSQL_PASSWORD=gitea | |
- MYSQL_DATABASE=gitea | |
networks: | |
- gitea | |
volumes: | |
- ./mysql:/var/lib/mysql | |
drone: | |
image: drone/drone:1 | |
environment: | |
- DRONE_GITEA_SERVER=http://gitea:3000 | |
- DRONE_GIT_ALWAYS_AUTH=true | |
- DRONE_RUNNER_CAPACITY=2 | |
- DRONE_SERVER_HOST=drone.technomonk.net | |
- DRONE_SERVER_PROTO=https | |
- DRONE_TLS_AUTOCERT=true | |
ports: | |
- "80:80" | |
- "443:443" | |
restart: always | |
networks: | |
- gitea | |
volumes: | |
- ./drone:/data | |
- /var/run/docker.sock:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment