-
Notifications
You must be signed in to change notification settings - Fork 1
Setup for no-downtime builds #101
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| networks: | ||
| cc-shared-network: | ||
| name: cc-prod-shared-network | ||
| driver: bridge | ||
|
|
||
| services: | ||
| mongo: | ||
| image: mongo:4.4 | ||
| volumes: | ||
| - /mnt/share/mongo:/data/db | ||
| env_file: | ||
| - $CC_CONFIG_PATH/prod/global | ||
| networks: | ||
| - cc-shared-network | ||
| restart: unless-stopped | ||
|
|
||
| nginx: | ||
| build: ./nginx | ||
| volumes: | ||
| - ./nginx:/etc/nginx/conf.d | ||
| environment: | ||
| - VIRTUAL_HOST=clubs.iiit.ac.in | ||
| - LETSENCRYPT_HOST=clubs.iiit.ac.in | ||
| ports: | ||
| - "8000:80" | ||
| networks: | ||
| - cc-shared-network | ||
| restart: unless-stopped | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| networks: | ||
| cc-shared-network: | ||
| name: cc-staging-shared-network | ||
| driver: bridge | ||
|
|
||
| services: | ||
| mongo: | ||
| image: mongo:4.4 | ||
| volumes: | ||
| - /mnt/share/mongo_stage:/data/db | ||
| env_file: | ||
| - $CC_CONFIG_PATH/staging/global | ||
| networks: | ||
| - cc-shared-network | ||
| restart: unless-stopped | ||
|
|
||
| nginx: | ||
| build: ./nginx | ||
| volumes: | ||
| - ./nginx:/etc/nginx/conf.d | ||
| environment: | ||
| - VIRTUAL_HOST=dev-clubs.iiit.ac.in | ||
| # - LETSENCRYPT_HOST=clubs.iiit.ac.in | ||
| ports: | ||
| - "9000:80" | ||
| networks: | ||
| - cc-shared-network | ||
| restart: unless-stopped | ||
|
Comment on lines
+17
to
+28
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nginx service in the shared compose file lacks a
depends_ondirective to ensure the application services (auth, files, gateway, web) are started before nginx. While these services are in a separate compose file, nginx will attempt to proxy to them and should wait for them to be available, or at least document that the main compose stack must be started first.Consider adding a comment or documentation about the startup order requirement, since cross-compose
depends_ondoesn't work.