-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 947 Bytes
/
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
version: "3"
services:
traefik:
build: traefik
container_name: traefik
networks:
traefik:
ipv4_address: 172.16.0.250
volumes:
- "./traefik/traefik.yml:/etc/traefik/traefik.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./ca/:/usr/share/ca-certificates/pebble/:ro"
environment:
- SSL_CERT_FILE=/usr/share/ca-certificates/pebble/ca.crt
ports:
- 8080:8080
- 80:80
- 443:443
labels:
traefik.enable: true
traefik.http.routers.api.rule: Host(`traefik3.test`)
traefik.http.routers.api.priority: 1000
traefik.http.routers.api.service: api@internal
restart: always
depends_on:
- pebble
pebble:
build: pebble
container_name: pebble
volumes:
- "./ca:/var/pebble/certs/ca"
networks:
traefik:
ipv4_address: 172.16.0.251
ports:
- 443
networks:
traefik:
external: true