-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.39 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
x-networks: &networks
networks:
- redirects-traefik-middleware
services:
redirects-app:
container_name: redirects-app
build:
context: .
args:
GO_VERSION: ${GO_VERSION}
ports:
- "8081:8081"
- "8443:443"
environment:
GOPATH: /app
env_file:
- .env
<<: *networks
traefik:
container_name: traefik
image: traefik:latest
ports:
- "80:80"
- "8080:8080"
command:
- --api.dashboard=true
- --api.insecure=true
- --providers.docker=true
- --log.level=DEBUG
- --log.filePath=/logs/traefik.log
- --entrypoints.http.address=:80
- --providers.file.filename=/redirects-config.yaml
- --experimental.plugins.redirects-traefik-middleware.modulename=github.com/TRIMM/redirects-traefik-middleware
- --experimental.plugins.redirects-traefik-middleware.version=v0.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./redirects-config.yaml:/redirects-config.yaml
- ./logs/:/logs/
<<: *networks
whoami:
container_name: whoami
image: traefik/whoami
labels:
traefik.http.routers.whoami.rule: Host(`whoami.docker.local`)
traefik.http.routers.whoami.middlewares: redirects-traefik-middleware@file
<<: *networks
networks:
redirects-traefik-middleware:
name: redirects-traefik-middleware
external: true