drone. Adding host mapping for host.docker.internal.

This commit is contained in:
Alexey Skobkin 2022-03-29 16:15:36 +03:00
parent 3b2fba1309
commit b671d984d0
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ services:
image: "drone/drone:${IMAGE_VERSION:-2}"
container_name: drone
hostname: drone
extra_hosts:
# Not necessary, but allows to access to local database if chosen over SQLite.
- "host.docker.internal:host-gateway"
volumes:
- "${HOST_DATA_DIR:-./data}:/data"
ports: