This commit is contained in:
Jannis Gebauer 2020-02-21 02:30:18 +00:00 committed by GitHub
commit f4c56ab352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -3,3 +3,10 @@ RUN mkdir -p /etc/traefik/acme
RUN touch /etc/traefik/acme/acme.json
RUN chmod 600 /etc/traefik/acme/acme.json
COPY ./compose/production/traefik/traefik.yml /etc/traefik
RUN addgroup -g 101 -S traefik
RUN adduser -S -D -H -u 101 -s /sbin/nologin -G traefik -g traefik traefik
RUN chown -R traefik /etc/traefik
USER traefik
EXPOSE 8080/tcp 8443/tcp

View File

@ -4,11 +4,11 @@ log:
entryPoints:
web:
# http
address: ":80"
address: ":8080"
web-secure:
# https
address: ":443"
address: ":8443"
certificatesResolvers:
letsencrypt:

View File

@ -40,8 +40,8 @@ services:
volumes:
- production_traefik:/etc/traefik/acme
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
- "0.0.0.0:80:8080"
- "0.0.0.0:443:8443"
redis:
image: redis:5.0