-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.with-traefik.yml
49 lines (42 loc) · 1.22 KB
/
docker-compose.with-traefik.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
version: "3.8"
services:
echtzeitkiosk-frontend:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/echtzeitsysteme/echtzeitkiosk-frontend:arm64
# image: ghcr.io/echtzeitsysteme/echtzeitkiosk-frontend:amd64
container_name: echtzeitkiosk-frontend
restart: unless-stopped
environment:
NODE_ENV: 'production'
REACT_APP_API_URL: 'http://kiosk.fg.es.e-technik.tu-darmstadt.de:4000/v1'
expose:
- '80'
# ports:
# - 80:80
networks:
- proxy
- default
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
# routers
- "traefik.http.routers.echtzeitkiosk-frontend-secure.entrypoints=websecure"
- "traefik.http.routers.echtzeitkiosk-frontend-secure.rule=Host(`echtzeitkiosk.mertalpulus.eu`)"
- "traefik.http.routers.echtzeitkiosk-frontend-secure.service=echtzeitkiosk-frontend"
# services
- "traefik.http.services.echtzeitkiosk-frontend.loadbalancer.server.port=80"
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M
logging:
driver: "json-file"
options:
max-size: "512m"
networks:
proxy:
external: true