Fixed nginx conf path in Dockerfile, added traefik
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
FROM nginx:stable
|
||||
RUN mkdir -p /srv/http/games
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
services:
|
||||
web:
|
||||
gds:
|
||||
image: nginx-gds
|
||||
build: ./
|
||||
volumes:
|
||||
- ./games:/srv/http/games
|
||||
ports:
|
||||
- "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"
|
||||
|
||||
Reference in New Issue
Block a user