-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
31 lines (30 loc) · 924 Bytes
/
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
services:
api:
build:
context: .
dockerfile: deployments/Dockerfile-prod
container_name: api
environment:
- CGO_ENABLED=0
- GOOS=linux
- SERVICE_FQDN_API=/
restart: unless-stopped
platform: linux/amd64
ports:
- "4000:4000"
labels:
- traefik.enable=true
- "traefik.http.routers.tools-api.rule=Host(`tools.lucasfaria.dev`)"
- traefik.http.routers.tools-api.entryPoints=http,https
- traefik.http.services.tools-api.loadbalancer.server.port=4000
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.tools-api.middlewares=redirect-to-https"
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://localhost:4000/v1/healthcheck || exit 1"]
interval: 30s
timeout: 10s
retries: 5
gotenberg:
image: gotenberg/gotenberg:8
expose:
- "3000"