-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.server.yml
31 lines (29 loc) · 1.04 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
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: itkdev/os2display-api-admin:alpha
restart: unless-stopped
networks:
- app
- frontend
environment:
- API_PATH=https://displayapiservice.local.itkdev.dk/
- APP_TOUCH_BUTTON_REGIONS=true
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"