-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 2.58 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
x-defaults:
&defaults
ENVIRONMENT: production
services:
graphene:
image: ghcr.io/teknologi-umum/graphene:edge
environment:
<<: [ *defaults ]
PORT: 3000
SENTRY_DSN: $SENTRY_DSN
labels:
- "traefik.enable=true"
- "traefik.http.routers.graphene.entrypoints=web,websecure"
- "traefik.http.routers.graphene.rule=Host(`graphene.teknologiumum.com`)"
- "traefik.http.routers.graphene.tls.certresolver=tlsresolver"
- "traefik.http.routers.graphene.middlewares=graphene-error,graphene-header,graphene-rate,graphene-redirectscheme"
- "traefik.http.services.graphene.loadbalancer.server.port=3000"
- "traefik.http.services.graphene.loadbalancer.server.scheme=http"
- "traefik.http.services.graphene.loadbalancer.healthcheck.interval=30s"
- "traefik.http.services.graphene.loadbalancer.healthcheck.path=/"
- "traefik.http.middlewares.graphene-error.errors.status=500-599"
- "traefik.http.middlewares.graphene-error.errors.service=graphene@docker"
- "traefik.http.middlewares.graphene-error.errors.query=/error"
- "traefik.http.middlewares.graphene-rate.ratelimit.average=100"
- "traefik.http.middlewares.graphene-rate.ratelimit.burst=20"
- "traefik.http.middlewares.graphene-rate.ratelimit.period=1s"
- "traefik.http.middlewares.graphene-header.headers.frameDeny=true"
- "traefik.http.middlewares.graphene-header.headers.browserxssfilter=true"
- "traefik.http.middlewares.graphene-header.headers.stsSeconds=604800"
- "traefik.http.middlewares.graphene-header.headers.stsIncludeSubdomains=true"
- "traefik.http.middlewares.graphene-header.headers.browserXssFilter=true"
- "traefik.http.middlewares.graphene-header.headers.contentTypeNosniff=true"
- "traefik.http.middlewares.graphene-header.headers.customResponseHeaders.server=Teknologi Umum"
- "traefik.http.middlewares.graphene-redirectscheme.redirectscheme.scheme=https"
- "traefik.http.middlewares.graphene-redirectscheme.redirectscheme.permanent=true"
platform: linux/amd64
healthcheck:
test: curl -f http://localhost:3000/ || exit 1
interval: 30s
timeout: 20s
retries: 5
deploy:
mode: replicated
replicas: 2
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 10
window: 120s
resources:
limits:
memory: 750MB
cpus: '0.75'
reservations:
memory: 200MB
cpus: '0.20'
networks:
- graphene
networks:
graphene:
driver: bridge
external: true