Created
November 15, 2019 17:01
-
-
Save long25vn/85e594413d6eec9242369bc2500699b5 to your computer and use it in GitHub Desktop.
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.3' | |
networks: | |
gitea-network: | |
external: true | |
services: | |
drone: | |
image: drone/drone:1.2.1 | |
volumes: | |
- ./drone:/var/lib/drone/ | |
- /var/run/docker.sock:/var/run/docker.sock | |
restart: always | |
ports: | |
- "8002:8000" | |
- "8003:80" | |
environment: | |
- DRONE_OPEN=true | |
- DRONE_SERVER_HOST=45.118.145.142:8003 | |
- DRONE_SECRET=dronesecret | |
- DRONE_USER_CREATE=username:long,machine:false,admin:true | |
- DRONE_GITEA_CLIENT_ID=da03fc59-a98c-4059-99fb-1bb3800c6e62 | |
- DRONE_GITEA_CLIENT_SECRET=1JsylSKZtcDjXe3vVX70tYrwdZS2anS6oGnvWLRwNy0= | |
# Gitea Config | |
- DRONE_GITEA=true | |
- DRONE_GITEA_SERVER=http://45.118.145.142:3000 | |
- DRONE_NETWORK=gitea-network | |
drone-agent: | |
image: drone/agent | |
depends_on: | |
- drone | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
environment: | |
- DRONE_SERVER=drone:9000 | |
- DRONE_SECRET=dronesecret | |
- DRONE_MAX_PROCS=3 | |
# wordpress: | |
# depends_on: | |
# - db | |
# image: wordpress:latest | |
# ports: | |
# - "8080:80" | |
# restart: always | |
# environment: | |
# WORDPRESS_DB_HOST: db:3306 | |
# WORDPRESS_DB_USER: wordpress | |
# WORDPRESS_DB_PASSWORD: wordpress | |
# WORDPRESS_DB_NAME: wordpress | |
# volumes: | |
# db_data: {} | |
gitea: | |
image: gitea/gitea:latest | |
environment: | |
- USER_UID=1000 | |
- USER_GID=1000 | |
- SSH_DOMAIN=http://45.118.145.142:3000 | |
- ROOT_URL=http://45.118.145.142:3000 | |
- DB_TYPE=postgres | |
- DB_HOST=db:5432 | |
- DB_NAME=gitea | |
- DB_USER=gitea | |
- DB_PASSWD=gitea | |
volumes: | |
- ./gitea:/data | |
ports: | |
- "2221:22" | |
- "3000:3000" | |
db: | |
image: postgres:9.6 | |
environment: | |
- POSTGRES_USER=gitea | |
- POSTGRES_PASSWORD=gitea | |
- POSTGRES_DB=gitea | |
volumes: | |
- ./postgres:/var/lib/postgresql/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment