Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
confirm IT solutions
ERFA
Bob
Commits
9cde5bed
Commit
9cde5bed
authored
1 year ago
by
Dominique Barton
Browse files
Options
Download
Patches
Plain Diff
Add dedicated Compose override
parent
158c3f88
hello-world
No related merge requests found
Pipeline
#31425
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy.sh
+15
-0
deploy.sh
docker-compose.yml
+0
-10
docker-compose.yml
with
15 additions
and
10 deletions
+15
-10
deploy.sh
+
15
−
0
View file @
9cde5bed
...
...
@@ -6,6 +6,21 @@ export ENVIRONMENT_HOST="${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}.${DOMAIN}"
export
COMPOSE_PROJECT_NAME
=
"
${
CI_PROJECT_NAME
}
-
${
CI_COMMIT_REF_SLUG
}
"
export
TRAEFIK_ROUTER
=
"
${
COMPOSE_PROJECT_NAME
}
"
cat
<<
EOF
>docker-compose.override.yml
---
services:
${
INBOUND_CONTAINER
:-
web
}
:
labels:
- traefik.enable=true
- traefik.http.routers.
${
TRAEFIK_ROUTER
}
.rule=Host(`
${
ENVIRONMENT_HOST
}
`)
networks:
- proxy
networks:
proxy:
external: true
EOF
case
"
$*
"
in
"deploy"
)
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
0
−
10
View file @
9cde5bed
---
version
:
"
3"
services
:
web
:
build
:
.
labels
:
-
traefik.enable=true
-
traefik.http.routers.${TRAEFIK_ROUTER}.rule=Host(`${ENVIRONMENT_HOST}`)
networks
:
-
proxy
networks
:
proxy
:
external
:
true
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets