Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
GitLab Drupal CI
Commits
0fa0c367
Commit
0fa0c367
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
l3d#90
Adjust node_cmd script to work with Traefik 2
parent
b51cf891
No related branches found
No related tags found
No related merge requests found
Pipeline
#35014
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/node_cmd
+18
-4
18 additions, 4 deletions
bin/node_cmd
with
18 additions
and
4 deletions
bin/node_cmd
+
18
−
4
View file @
0fa0c367
...
...
@@ -8,6 +8,21 @@ ID=$(docker container ls --all -q -f name=^${NAME}$)
if
[[
-n
${
ID
}
]]
;
then
docker start
${
NAME
}
>
/dev/null
else
if
[[
"
$DOCKER4DRUPAL_TRAEFIK_USESSL
"
==
"1"
]]
;
then
SCHEMA
=
https
if
[[
"
$DOCKER4DRUPAL_TRAEFIK_PORTS
"
==
"443"
]]
;
then
PORT
=
else
PORT
=
":
$DOCKER4DRUPAL_TRAEFIK_PORTS
"
fi
else
SCHEMA
=
http
if
[[
"
$DOCKER4DRUPAL_TRAEFIK_PORT
"
==
"80"
]]
;
then
PORT
=
else
PORT
=
":
$DOCKER4DRUPAL_TRAEFIK_PORT
"
fi
fi
docker run
--init
-itd
--name
=
${
NAME
}
\
--network
traefik_
${
COMPOSE_PROJECT_NAME
}
\
--network-alias
bs
\
...
...
@@ -16,10 +31,9 @@ else
--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
}
\
--env
DOCKER4DRUPAL_NODE_DOMAIN
=
${
COMPOSE_PROJECT_NAME
}
.
${
DOCKER4DRUPAL_TRAEFIK_DOMAIN
}
\
--env
DOCKER4DRUPAL_NODE_PORT
=
${
PORT
}
\
--env
DOCKER4DRUPAL_NODE_SCHEMA
=
${
SCHEMA
}
\
--expose
3000
\
-v
$(
php /usr/local/bin/volume.php
)
\
-w
${
PWD
}
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment