adds option to add https

This commit is contained in:
Leon Morten Richter 2022-06-30 14:42:47 +02:00
parent 9a9e21451b
commit 6a1e1432b2
No known key found for this signature in database
GPG key ID: 9903A6789FCE9468
5 changed files with 71 additions and 4 deletions

View file

@ -38,9 +38,6 @@ services:
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=flant-statusmap-panel
restart: unless-stopped
ports:
- 3000:3000
- 80:3000
networks:
- default
labels:
@ -55,4 +52,20 @@ services:
networks:
- default
restart: unless-stopped
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
# Uncomment the four lines below to enable HTTPS
# - ./nginx/nginx.conf.https:/etc/nginx/conf.d/default.conf
# - ./nginx/nginx-selfsigned.key:/etc/nginx/ssl/nginx-selfsigned.key
# - ./nginx/nginx-selfsigned.crt:/etc/nginx/ssl/nginx-selfsigned.crt
# - ./nginx/self-signed.conf:/etc/nginx/ssl/self-signed.conf
ports:
- 80:80
- 443:443
networks:
- default