-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
52 lines (50 loc) · 1.69 KB
/
docker-compose.yaml
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
version: "3.9"
services:
website:
image: "docker.io/nginx"
restart: unless-stopped
ports:
- "1313:80"
volumes:
- ./site:/usr/share/nginx/html:ro
labels:
- "traefik.enable=true"
# The domain the service will respond to
- "traefik.http.routers.website.rule=Host(`perses.dev`)"
- "traefik.http.routers.website.tls.certresolver=myresolver"
demo:
image: "docker.io/persesdev/perses:v0.50.0-rc.1-distroless"
ports:
- "5000:8080"
command: "--config=/etc/perses/config/config.yaml"
volumes:
- ./provisioning:/etc/perses/provisioning
- ./secret:/etc/perses/config
- ./data:/perses
restart: unless-stopped
labels:
- "traefik.enable=true"
# The domain the service will respond to
- "traefik.http.routers.demo.rule=Host(`demo.perses.dev`)"
- "traefik.http.routers.demo.tls.certresolver=myresolver"
prometheus:
image: "docker.io/prom/prometheus:v3.1.0"
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
traefik:
image: "docker.io/traefik:v2.9.10"
command:
- "--providers.docker=true"
# https://doc.traefik.io/traefik/user-guides/docker-compose/acme-tls/
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=perses-team@googlegroups.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
volumes:
# So that Traefik can listen to the Docker events
- "/run/user/1000/podman/podman.sock:/var/run/docker.sock"
- "./letsencrypt:/letsencrypt"