-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 1.11 KB
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
version: '3'
services:
traefik:
# The official v2 Traefik docker image
image: traefik:v2.2
# Enables the web UI and tells Traefik to listen to docker
# command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
- "443:443"
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yaml
- ${PWD}/acme.json:/acme.json
whoami:
# A container that exposes an API to show its IP address
image: containous/whoami
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.lab.nias.dev`)"
- traefik.port=80
- traefik.enable=true
- traefik.http.routers.whoami.tls=true
- traefik.http.routers.whoami.tls.certresolver=CertificateResolver0
nginx:
image: nginx:alpine
labels:
- "traefik.http.routers.blog.rule=Host(`gcp.nias.dev`)"
- traefik.port=80
- traefik.http.routers.blog.tls=true
- traefik.http.routers.blog.tls.certresolver=CertificateResolver0
- traefik.enable=true