Commit b51cf891 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

l3d#90 Adjust node_cmd script to work with Traefik 2

parent c294ab83
Pipeline #34850 passed with stage
in 1 minute and 22 seconds
......@@ -10,16 +10,17 @@ if [[ -n ${ID} ]]; then
else
docker run --init -itd --name=${NAME} \
--network traefik_${COMPOSE_PROJECT_NAME} \
--label traefik.backend=${NAME} \
--label traefik.frontend.rule="Host:bs.${COMPOSE_PROJECT_NAME}.docker.localhost" \
--label traefik.port=3000 \
--label traefik.site.backend=${NAME} \
--label traefik.site.frontend.rule="Host:bs.${COMPOSE_PROJECT_NAME}.docker.localhost" \
--label traefik.site.port=3000 \
--label traefik.ui.backend=ui-${NAME} \
--label traefik.ui.frontend.rule="Host:bs-ui.${COMPOSE_PROJECT_NAME}.docker.localhost" \
--label traefik.ui.port=3001 \
--network-alias bs \
--label traefik.enable=True \
--label traefik.network=${COMPOSE_PROJECT_NAME} \
--label traefik.http.services.${COMPOSE_PROJECT_NAME}_bs.loadbalancer.server.port=3000 \
--label traefik.http.routers.${COMPOSE_PROJECT_NAME}_bs.rule=Host\(\`bs-${COMPOSE_PROJECT_NAME}.${DOCKER4DRUPAL_TRAEFIK_DOMAIN}\`\) \
--env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME} \
--env DOCKER4DRUPAL_TRAEFIK_PORT=${DOCKER4DRUPAL_TRAEFIK_PORT} \
--env DOCKER4DRUPAL_TRAEFIK_PORTS=${DOCKER4DRUPAL_TRAEFIK_PORTS} \
--env DOCKER4DRUPAL_TRAEFIK_USESSL=${DOCKER4DRUPAL_TRAEFIK_USESSL} \
--env DOCKER4DRUPAL_TRAEFIK_DOMAIN=${DOCKER4DRUPAL_TRAEFIK_DOMAIN} \
--expose 3000 \
-v $(php /usr/local/bin/volume.php) \
-w ${PWD} \
registry.lakedrops.com/docker/node:${NODE_VERSION} >/dev/null
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment