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

70 lines
2 KiB
YAML
Raw Normal View History

version: "3"
2021-04-26 17:00:23 +02:00
services:
2022-06-03 17:24:14 +02:00
mybunker:
2023-10-20 16:34:12 +02:00
image: bunkerity/bunkerweb:1.5.3
2021-04-26 17:00:23 +02:00
ports:
- 80:8080
- 443:8443
environment:
2022-06-03 17:24:14 +02:00
- SERVER_NAME=www.example.com # replace with your domain
2022-11-21 11:28:08 +01:00
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24
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
- |
2022-11-21 11:28:08 +01: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:
2023-10-20 16:34:12 +02:00
image: bunkerity/bunkerweb-scheduler:1.5.3
2022-11-21 11:28:08 +01:00
depends_on:
- mybunker
environment:
2023-03-08 17:01:55 +01:00
- DOCKER_HOST=tcp://bw-docker-proxy:2375
2022-11-21 11:28:08 +01:00
volumes:
- bw-data:/data
networks:
- bw-universe
2023-03-08 17:01:55 +01:00
- bw-docker
2022-11-21 11:28:08 +01:00
2023-03-08 17:01:55 +01:00
bw-docker-proxy:
image: tecnativa/docker-socket-proxy:nightly
2022-11-21 11:28:08 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
- LOG_LEVEL=warning
2022-11-21 11:28:08 +01:00
networks:
2023-03-08 17:01:55 +01:00
- bw-docker
2021-04-26 17:00:23 +02:00
mygogs:
2022-12-05 11:47:56 +01:00
image: gogs/gogs:0.12
2021-04-26 17:00:23 +02:00
volumes:
- ./gogs-data:/data
2022-11-21 11:28:08 +01:00
networks:
- bw-services
2022-12-05 11:47:56 +01:00
volumes:
bw-data:
2022-11-21 11:28:08 +01:00
networks:
bw-universe:
ipam:
driver: default
config:
- subnet: 10.20.30.0/24
bw-services:
2023-03-08 17:01:55 +01:00
bw-docker: