Fixed accessing drone container

This commit is contained in:
2020-01-04 10:39:35 +01:00
parent eee3cfc71b
commit e7ead77124
2 changed files with 5 additions and 2 deletions
@@ -14,6 +14,8 @@
# keep the host
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Host "{{ ci_domain }}"
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
@@ -5,14 +5,15 @@ services:
image: drone/drone:1
ports:
- 8000:8000
- "8000:80"
- "8001:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/drone:/data
restart: always
environment:
- DRONE_SERVER_HOST={{ ci_domain }}
- DRONE_SERVER_PROTO=http
- DRONE_SERVER_PROTO=https
- DRONE_RUNNER_CAPACITY=2
- DRONE_USER_CREATE=username:{{ gitea_user }},admin:true
- DRONE_GITEA_SERVER={{ gitea_url }}