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

Development: use wrangler locally (Docker container) #192

Merged
merged 7 commits into from
Feb 13, 2024
Merged
Changes from 5 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
25 changes: 25 additions & 0 deletions dockerfiles/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,38 @@ services:
- web
- proxito
- storage
- wrangler
networks:
readthedocs:
environment:
- NGINX_ADDONS_GITHUB_TAG=0.9.5
volumes:
- ${PWD}/dockerfiles/nginx:/etc/nginx/templates
# Disable logs for NGINX by default because they are too noisy and we have
# better logs in our application code
logging:
driver: "none"

wrangler:
build:
context: ${PWD}
dockerfile: ${PWD}/dockerfiles/Dockerfile.wrangler
volumes:
- ${PWD}/dockerfiles/force-readthedocs-addons.js:/usr/src/app/docker/force-readthedocs-addons.js
networks:
readthedocs:
command: [
"wrangler",
"dev",
"/usr/src/app/docker/force-readthedocs-addons.js",
"--name=force-addons",
"--latest",
"--log-level=error",
"--host=nginx:8080",
"--ip=0.0.0.0",
"--port=8000",
]

proxito:
volumes:
- ${PWD}/common/dockerfiles/entrypoints/common.sh:/usr/src/app/docker/common.sh
Expand Down