-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-compose.yml
More file actions
41 lines (30 loc) · 1.01 KB
/
api-compose.yml
File metadata and controls
41 lines (30 loc) · 1.01 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
version: "3.8"
services:
faucet-api:
image: faucet-backend:latest
env_file: .env
expose:
- "8080"
volumes:
- faucet_db:/app/data
networks: [proxy]
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.api-http.rule=PathPrefix(`/api`)
- traefik.http.routers.api-http.entrypoints=web
- traefik.http.routers.api-http.priority=20
- traefik.http.routers.api-http.middlewares=rl10
- traefik.http.routers.api-https.rule=Host(`${TRAEFIK_DOMAIN}`) && PathPrefix(`/api`)
- traefik.http.routers.api-https.entrypoints=websecure
- traefik.http.routers.api-https.tls.certresolver=le
- traefik.http.routers.api-https.priority=20
- traefik.http.routers.api-https.middlewares=rl10
- traefik.http.middlewares.rl10.ratelimit.average=10
- traefik.http.middlewares.rl10.ratelimit.burst=20
- traefik.http.services.api.loadbalancer.server.port=8080
volumes:
faucet_db:
networks:
proxy:
external: true