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
1a66ce1c
Verified
Commit
1a66ce1c
authored
2 years ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
Update instructions for Docker Compose V2
parent
904af26a
No related branches found
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 @
1a66ce1c
...
...
@@ -4,7 +4,7 @@
[
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
container using docker
-
compose.
container using docker
compose.
The goal is to set up a TLS termination proxy for all Docker containers
providing web services on a
**single host**
.
...
...
@@ -40,15 +40,12 @@ For the HTTP challenge you will need:
### 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
)
*
Includes Docker Compose V2
*
[
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
1.
Create an external docker network named "webproxy":
...
...
@@ -67,10 +64,10 @@ To install docker, follow the instructions for your platform:
→ Dots (
`.`
) in the name are not allowed!
5.
Start the container in detached mode:
```
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!
### Test
...
...
@@ -83,7 +80,7 @@ where 'docker-compose.yml' is located!
'.env'.
2.
Start the container in detached mode:
```
bash
docker
-
compose up
-d
docker
compose up
-d
```
3.
Wait a bit and visit http://whoami.mydomain.com to confirm everything went
fine.
...
...
@@ -94,5 +91,5 @@ Use [docker logs](https://docs.docker.com/engine/reference/commandline/logs/)
to see the output of the container:
```
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 @
1a66ce1c
version
:
'
3.
8
'
version
:
'
3.
9
'
services
:
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