25 lines
806 B
YAML
25 lines
806 B
YAML
version: '3'
|
|
services:
|
|
spaceapi-v2:
|
|
build: .
|
|
container_name: spaceapi-v2
|
|
restart: always
|
|
labels:
|
|
- traefik.frontend.rule=Host:status-v2.chaospott.de
|
|
- traefik.port=3000
|
|
- traefik.frontend.passHostHeader=true
|
|
- traefik.enable=true
|
|
- traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:*
|
|
# NOTE: This is for Traefik v2, apparently.
|
|
- traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT
|
|
- traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=https://chaospott.de
|
|
- traefik.http.middlewares.cors.headers.accesscontrolmaxage=100
|
|
- traefik.http.middlewares.cors.headers.addvaryheader=true
|
|
networks:
|
|
- extern
|
|
|
|
networks:
|
|
extern:
|
|
external:
|
|
name: web
|