Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowing docker container to access service on host #2895

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/docker-compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
ports:
- ${MYSQL_PORT}:3306
volumes:
- mysql_data:/var/lib/mysql
- ./mysql_data:/var/lib/mysql
Copy link
Member

@yuzhichang yuzhichang Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql_data is a volume defined later in this yaml. It's mounted from a docker managed directory.
In rare case if you want to mount from some specific host path, change the volume definion there for yourself.
Revert this chagne please.

- ./init.sql:/data/application/init.sql
networks:
- ragflow
Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ services:
networks:
- ragflow
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM