From 6ea4a4513b24e98eab95dc3b956127e18c1ce2aa Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Wed, 5 Jun 2024 22:51:18 +0200 Subject: [PATCH] feat: Add extra_hosts configuration to docker-compose.dev.yml (#2635) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): Co-authored-by: Stan Girard --- docker-compose.dev.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 553417792..c5af1ee27 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -3,6 +3,8 @@ version: "3.8" services: backend-core: image: backend-base:latest + extra_hosts: + - "host.docker.internal:host-gateway" pull_policy: never env_file: - .env @@ -37,6 +39,8 @@ services: redis: image: redis:latest container_name: redis + extra_hosts: + - "host.docker.internal:host-gateway" restart: always ports: - 6379:6379 @@ -44,6 +48,8 @@ services: worker: pull_policy: never image: backend-base:latest + extra_hosts: + - "host.docker.internal:host-gateway" env_file: - .env container_name: worker @@ -57,6 +63,8 @@ services: beat: image: backend-base:latest pull_policy: never + extra_hosts: + - "host.docker.internal:host-gateway" env_file: - .env @@ -69,6 +77,8 @@ services: flower: image: backend-base:latest pull_policy: never + extra_hosts: + - "host.docker.internal:host-gateway" env_file: - .env