forked from os2display/display-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.server.yml
36 lines (34 loc) · 1.39 KB
/
docker-compose.server.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
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: itkdev/os2display-client:alpha
restart: unless-stopped
networks:
- app
- frontend
environment:
- APP_API_AUTHENTICATION_ENDPOINT=https://displayapiservice.local.itkdev.dk/v1/authentication/screen
- APP_API_AUTHENTICATION_REFRESH_ENDPOINT=https://displayapiservice.local.itkdev.dk/v1/authentication/token/refresh
- APP_API_PATH=https://displayapiservice.local.itkdev.dk/
- APP_DATA_PULL_INTERVAL=60000
- APP_SCHEDULING_INTERVAL=60000
- APP_DEBUG=false
- APP_API_ENDPOINT=https://displayapiservice.local.itkdev.dk
ports:
- '8080'
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
#- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"