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

View file

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