-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (45 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
46 lines (45 loc) · 1.14 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
38
39
40
41
42
43
44
45
46
services:
http-echo:
image: mendhak/http-https-echo:latest
environment:
- JWT_HEADER=Authorization
- DISABLE_REQUEST_LOGS=true
- HTTP_PORT=80
- HTTPS_PORT=443
traefik:
image: fly-traefik:3
build:
context: .
dockerfile: Dockerfile
ports:
- "127.0.0.1:8080:80"
- "[::1]:8080:80"
- "127.0.0.1:8443:443"
- "[::1]:8443:443"
- "127.0.0.1:16160:8080"
- "[::1]:16160:8080"
volumes:
- ./traefik/traefik.yaml:/etc/traefik/traefik.yaml
- ./traefik/traefik.d:/etc/traefik/traefik.d
- traefik-var:/var/lib/traefik
healthcheck:
test: wget -qO- http://127.0.0.1/.well-known/traefik/ping || exit 1
interval: 5s
timeout: 1s
retries: 3
environment:
- FLY_APP_PREFIX=randomstr42
- DEPLOY_ENV=dev
- BASE_DOMAIN=local.dev
env_file:
- local.secrets.env
develop:
watch:
- path: ./traefik/traefik.d
target: /etc/traefik/traefik.d
action: sync
- path: ./traefik/traefik.yaml
target: /etc/traefik/traefik.yaml
action: rebuild
volumes:
traefik-var: {}