Fixed nginx conf path in Dockerfile, added traefik

This commit is contained in:
KaasKop-
2023-03-13 14:30:50 +01:00
parent d3e8551cf8
commit fe75231644
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
FROM nginx:stable FROM nginx:stable
RUN mkdir -p /srv/http/games RUN mkdir -p /srv/http/games
COPY nginx.conf /etc/nginx/nginx.conf COPY config/nginx.conf /etc/nginx/nginx.conf

View File

@@ -1,8 +1,13 @@
services: services:
web: gds:
image: nginx-gds image: nginx-gds
build: ./ build: ./
volumes: volumes:
- ./games:/srv/http/games - ./games:/srv/http/games
ports: ports:
- "6080:80" - "6080:80"
labels:
- "traefik.http.routers.gds.rule=Host(`gds.mitchelbv.nl`)"
- "traefik.http.routers.gds.entrypoints=web-secure"
- "traefik.http.routers.gds.tls=true"
- "traefik.http.routers.gds.tls.certresolver=cert_resolver"