Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Træfik
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
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
Deployments
Træfik
Commits
fd0dc2d3
Verified
Commit
fd0dc2d3
authored
2 years ago
by
Olivier Benz
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop'
parents
d56a2d73
1a66ce1c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+7
-10
7 additions, 10 deletions
README.md
sample.docker-compose.yml
+1
-1
1 addition, 1 deletion
sample.docker-compose.yml
with
8 additions
and
11 deletions
README.md
+
7
−
10
View file @
fd0dc2d3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
[
This project
](
https://gitlab.com/b-data/docker/deployments/traefik
)
serves as
[
This project
](
https://gitlab.com/b-data/docker/deployments/traefik
)
serves as
a template to run
[
Træfik
](
https://hub.docker.com/_/traefik
)
v2.8 in a docker
a template to run
[
Træfik
](
https://hub.docker.com/_/traefik
)
v2.8 in a docker
container using docker
-
compose.
container using docker
compose.
The goal is to set up a TLS termination proxy for all Docker containers
The goal is to set up a TLS termination proxy for all Docker containers
providing web services on a
**single host**
.
providing web services on a
**single host**
.
...
@@ -40,15 +40,12 @@ For the HTTP challenge you will need:
...
@@ -40,15 +40,12 @@ For the HTTP challenge you will need:
### Docker
### Docker
To install docker, follow the instructions for your platform:
To install docker
and docker compose
, follow the instructions for your platform:
*
[
Install Docker Engine | Docker Documentation > Supported platforms
](
https://docs.docker.com/engine/install/#supported-platforms
)
*
[
Install Docker Engine | Docker Documentation > Supported platforms
](
https://docs.docker.com/engine/install/#supported-platforms
)
*
Includes Docker Compose V2
*
[
Post-installation steps for Linux
](
https://docs.docker.com/engine/install/linux-postinstall/
)
*
[
Post-installation steps for Linux
](
https://docs.docker.com/engine/install/linux-postinstall/
)
### Docker Compose
*
[
Install Docker Compose
](
https://docs.docker.com/compose/install/
)
## Setup
## Setup
1.
Create an external docker network named "webproxy":
1.
Create an external docker network named "webproxy":
...
@@ -67,10 +64,10 @@ To install docker, follow the instructions for your platform:
...
@@ -67,10 +64,10 @@ To install docker, follow the instructions for your platform:
→ Dots (
`.`
) in the name are not allowed!
→ Dots (
`.`
) in the name are not allowed!
5.
Start the container in detached mode:
5.
Start the container in detached mode:
```
bash
```
bash
docker
-
compose up
-d
docker
compose up
-d
```
```
`docker
-
compose`
commands must be run in the root directory of the project, i.e.
`docker
compose`
commands must be run in the root directory of the project, i.e.
where 'docker-compose.yml' is located!
where 'docker-compose.yml' is located!
### Test
### Test
...
@@ -83,7 +80,7 @@ where 'docker-compose.yml' is located!
...
@@ -83,7 +80,7 @@ where 'docker-compose.yml' is located!
'.env'.
'.env'.
2.
Start the container in detached mode:
2.
Start the container in detached mode:
```
bash
```
bash
docker
-
compose up
-d
docker
compose up
-d
```
```
3.
Wait a bit and visit http://whoami.mydomain.com to confirm everything went
3.
Wait a bit and visit http://whoami.mydomain.com to confirm everything went
fine.
fine.
...
@@ -94,5 +91,5 @@ Use [docker logs](https://docs.docker.com/engine/reference/commandline/logs/)
...
@@ -94,5 +91,5 @@ Use [docker logs](https://docs.docker.com/engine/reference/commandline/logs/)
to see the output of the container:
to see the output of the container:
```
bash
```
bash
docker logs webproxy
_
traefik
_
1
docker logs webproxy
-
traefik
-
1
```
```
This diff is collapsed.
Click to expand it.
sample.docker-compose.yml
+
1
−
1
View file @
fd0dc2d3
version
:
'
3.
8
'
version
:
'
3.
9
'
services
:
services
:
traefik
:
traefik
:
...
...
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