bunkerweb/examples/gogs/docker-compose.yml

77 lines
2.4 KiB
YAML
Raw Normal View History

version: "3"
2021-04-26 15:00:23 +00:00
services:
2022-06-03 15:24:14 +00:00
mybunker:
2022-11-21 10:28:08 +00:00
image: bunkerity/bunkerweb:1.5.0
2021-04-26 15:00:23 +00:00
ports:
- 80:8080
- 443:8443
2022-06-03 15:24:14 +00: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 15:00:23 +00:00
volumes:
2022-12-05 10:47:56 +00:00
- bw-data:/data
2021-04-26 15:00:23 +00:00
environment:
2022-06-03 15:24:14 +00:00
- SERVER_NAME=www.example.com # replace with your domain
2022-11-21 10:28:08 +00:00
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24
2021-04-26 15:00:23 +00: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 07:38:18 +00:00
- REVERSE_PROXY_HOST=http://mygogs:3000
2022-06-03 15:24:14 +00:00
- REVERSE_PROXY_HEADERS_1=Authorization $http_authorization
- MAX_CLIENT_SIZE=1G
- |
2022-11-21 10:28:08 +00:00
CUSTOM_CONF_MODSEC_CRS_gogs=SecAction "id:900220,phase:1,nolog,pass,t:none,setvar:'tx.allowed_request_content_type=|application/x-www-form-urlencoded| |multipart/form-data| |multipart/related| |text/xml| |application/xml| |application/soap+xml| |application/x-amf| |application/json| |application/cloudevents+json| |application/cloudevents-batch+json| |application/octet-stream| |application/csp-report| |application/xss-auditor-report| |text/plain| |application/x-git-upload-pack-request| |application/x-git-receive-pack-request|'"
labels:
- "bunkerweb.INSTANCE" # required for the scheduler to recognize the container
networks:
- bw-universe
- bw-services
bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.0
depends_on:
- mybunker
environment:
- DOCKER_HOST=tcp://docker-proxy:2375
volumes:
- bw-data:/data
networks:
- bw-universe
- net-docker
docker-proxy:
2022-12-05 10:47:56 +00:00
image: tecnativa/docker-socket-proxy:0.1
2022-11-21 10:28:08 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
networks:
- net-docker
2021-04-26 15:00:23 +00:00
mygogs:
2022-12-05 10:47:56 +00:00
image: gogs/gogs:0.12
2021-04-26 15:00:23 +00:00
volumes:
- ./gogs-data:/data
2022-11-21 10:28:08 +00:00
networks:
- bw-services
2022-12-05 10:47:56 +00:00
volumes:
bw-data:
2022-11-21 10:28:08 +00:00
networks:
bw-universe:
ipam:
driver: default
config:
- subnet: 10.20.30.0/24
bw-services:
net-docker: