Skip to content

Instantly share code, notes, and snippets.

@ryanirelan
Last active September 9, 2024 02:15
Show Gist options
  • Save ryanirelan/8b8e570c53cda7eb866368ba1d2e8f26 to your computer and use it in GitHub Desktop.
Save ryanirelan/8b8e570c53cda7eb866368ba1d2e8f26 to your computer and use it in GitHub Desktop.
# Override the web container's standard HTTP_EXPOSE and HTTPS_EXPOSE services
# to expose port `3000` of DDEV's web container.
version: '3.6'
services:
web:
expose:
- '3000'
environment:
- HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILPIT_PORT}:8025,3001:3000
- HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILPIT_HTTPS_PORT}:8025,3000:3000
@rekursief
Copy link

@ryanirelan: typo in the file name in docker-composer.vite.yaml, should be docker-compose.vite.yaml

@ryanirelan
Copy link
Author

@ryanirelan: typo in the file name in docker-composer.vite.yaml, should be docker-compose.vite.yaml

Thank you, fixed!

@rekursief
Copy link

@ryanirelan: typo in the file name in docker-composer.vite.yaml, should be docker-compose.vite.yaml

Thank you, fixed!

It's a typo easy to make as a PHP dev :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment