forked from sundowndev/phoneinfoga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.traefik.yml
35 lines (33 loc) · 1.16 KB
/
docker-compose.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
version: '3.7'
services:
phoneinfoga:
# container_name: phoneinfoga
restart: on-failure
build:
context: .
dockerfile: Dockerfile
command:
- "serve"
networks:
- default
- web
environment:
- GIN_MODE=release
labels:
- 'traefik.docker.network=web'
- 'traefik.enable=true'
- 'traefik.domain=demo.phoneinfoga.crvx.fr'
- 'traefik.basic.frontend.rule=Host:demo.phoneinfoga.crvx.fr'
- 'traefik.basic.port=5000'
- 'traefik.basic.protocol=http'
- 'traefik.frontend.headers.SSLRedirect=true'
- 'traefik.frontend.headers.STSSeconds=315360000'
- 'traefik.frontend.headers.browserXSSFilter=true'
- 'traefik.frontend.headers.contentTypeNosniff=true'
- 'traefik.frontend.headers.forceSTSHeader=true'
- "traefik.frontend.headers.contentSecurityPolicy=default-src 'self';frame-ancestors 'self';style-src 'self';script-src 'self';img-src 'self';font-src 'self'"
- 'traefik.frontend.headers.referrerPolicy=no-referrer'
- 'traefik.frontend.headers.frameDeny=true'
networks:
web:
external: true