-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove race conditions in docker volumes during build/runtime (#22912)
* Prevent race conditions in docker volume mounts - Renamed 'worker' service to 'olympia' in docker-compose.ci.yml and docker-compose.yml for clarity. - Introduced a new 'olympia' service with a persistent volume for site static files. - Updated 'worker' service to extend from 'olympia' and adjusted volume mappings accordingly. - Added dependency for 'nginx' service on 'olympia' to ensure proper startup order. - Changed base image for pip development stage in Dockerfile to improve build consistency. This commit enhances the organization of Docker services and improves the overall structure of the Docker setup.
- Loading branch information
Showing
3 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
services: | ||
worker: | ||
olympia_volumes: | ||
environment: | ||
- HOST_UID=9500 | ||
volumes: | ||
- storage:/data/olympia/storage | ||
- /data/olympia | ||
|
||
worker: | ||
extends: | ||
service: olympia_volumes | ||
depends_on: | ||
- olympia_volumes | ||
web: | ||
extends: | ||
service: worker | ||
volumes: | ||
- storage:/data/olympia/storage | ||
|
||
nginx: | ||
volumes: | ||
- storage:/srv/storage | ||
depends_on: | ||
- olympia_volumes | ||
|
||
volumes: | ||
storage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters