bunkerized-nginx/examples/gogs/docker-compose.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-26 17:00:23 +02:00
version: '3'
services:
2022-06-03 17:24:14 +02:00
mybunker:
2022-06-27 17:32:15 +02:00
image: bunkerity/bunkerweb:1.4.2
2021-04-26 17:00:23 +02:00
ports:
- 80:8080
- 443:8443
2022-06-03 17:24:14 +02:00
# ⚠️ read this if you use local folders for volumes ⚠️
# bunkerweb runs as an unprivileged user with UID/GID 101
# don't forget to edit the permissions of the files and folders accordingly
# example if you need to create a directory : mkdir folder && chown root:101 folder && chmod 770 folder
# another example for existing folder : chown -R root:101 folder && chmod -R 770 folder
# more info at https://docs.bunkerweb.io
2021-04-26 17:00:23 +02:00
volumes:
2022-06-03 17:24:14 +02:00
- ./bw-data:/data # contains some Core Rule Set configuration to fix FP
2021-04-26 17:00:23 +02:00
environment:
2022-06-03 17:24:14 +02:00
- SERVER_NAME=www.example.com # replace with your domain
2021-04-26 17:00:23 +02:00
- SERVE_FILES=no
- DISABLE_DEFAULT_SERVER=yes
- AUTO_LETS_ENCRYPT=yes
- USE_CLIENT_CACHE=yes
- USE_GZIP=yes
- USE_REVERSE_PROXY=yes
- REVERSE_PROXY_URL=/
2021-08-20 09:38:18 +02:00
- REVERSE_PROXY_HOST=http://mygogs:3000
2022-06-03 17:24:14 +02:00
- REVERSE_PROXY_HEADERS_1=Authorization $http_authorization
- MAX_CLIENT_SIZE=1G
2021-04-26 17:00:23 +02:00
mygogs:
image: gogs/gogs
volumes:
2022-06-03 17:24:14 +02:00
- ./gogs-data:/data