Skip to content

Instantly share code, notes, and snippets.

@mariohernandez
Last active June 19, 2020 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariohernandez/2806299cd8604a4d400c3c2e55314f73 to your computer and use it in GitHub Desktop.
Save mariohernandez/2806299cd8604a4d400c3c2e55314f73 to your computer and use it in GitHub Desktop.
patternlab docker-compose*.yaml
# docker-compose.patternlab.com to pass port 3000 inside the container
# to https://<something>.ddev.site:3001
version: '3.6'
services:
web:
ports:
# Expose port 3000 for the patternlab app
- "3001"
environment:
# Override the web container's standard HTTP_EXPOSE and HTTPS_EXPOSE
# to place the patternlab server on https://<something>.ddev.site:3001
# or http://<something>.ddev.site:3001
- HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025,3001:3001
# - HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILHOG_HTTPS_PORT}:8025,3001:3001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment