diff --git a/Dockerfile b/Dockerfile index 37ebdc1..4d20c9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index c64df2d..e908003 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,13 @@ services: - web: + gds: image: nginx-gds build: ./ volumes: - - ./games:/srv/http/games + - ./games:/srv/http/games ports: - - "6080:80" \ No newline at end of file + - "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"