2020-10-23 11:57:32 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
2022-06-03 15:24:14 +00:00
|
|
|
mybunker:
|
2022-06-27 15:32:15 +00:00
|
|
|
image: bunkerity/bunkerweb:1.4.2
|
2020-10-23 11:57:32 +00:00
|
|
|
ports:
|
2020-10-26 21:46:15 +00:00
|
|
|
- 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
|
2021-05-15 19:08:35 +00:00
|
|
|
# don't forget to edit the permissions of the files and folders accordingly
|
2022-06-03 15:24:14 +00:00
|
|
|
# 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
|
2020-10-23 11:57:32 +00:00
|
|
|
volumes:
|
2022-07-25 08:11:44 +00:00
|
|
|
- bw_data:/data # contains upstreams definition at http context
|
2020-10-23 11:57:32 +00:00
|
|
|
environment:
|
2022-06-03 15:24:14 +00:00
|
|
|
- SERVER_NAME=www.example.com # replace with your domain
|
2020-10-23 11:57:32 +00:00
|
|
|
- SERVE_FILES=no
|
|
|
|
|
- DISABLE_DEFAULT_SERVER=yes
|
|
|
|
|
- AUTO_LETS_ENCRYPT=yes
|
2021-04-26 15:00:23 +00:00
|
|
|
- USE_CLIENT_CACHE=yes
|
2020-11-15 13:55:48 +00:00
|
|
|
- USE_GZIP=yes
|
|
|
|
|
- USE_REVERSE_PROXY=yes
|
|
|
|
|
- REVERSE_PROXY_URL=/
|
|
|
|
|
- REVERSE_PROXY_HOST=http://app
|
2022-07-25 08:11:44 +00:00
|
|
|
- |
|
|
|
|
|
CUSTOM_CONF_HTTP_upstream.conf=
|
|
|
|
|
upstream app {
|
|
|
|
|
server app1:80;
|
|
|
|
|
server app2:80;
|
|
|
|
|
server app3:80;
|
|
|
|
|
}
|
2020-10-23 11:57:32 +00:00
|
|
|
|
|
|
|
|
app1:
|
2022-06-03 15:24:14 +00:00
|
|
|
image: tutum/hello-world
|
2020-10-23 11:57:32 +00:00
|
|
|
|
|
|
|
|
app2:
|
2022-06-03 15:24:14 +00:00
|
|
|
image: tutum/hello-world
|
2020-10-23 11:57:32 +00:00
|
|
|
|
|
|
|
|
app3:
|
2022-07-25 08:11:44 +00:00
|
|
|
image: tutum/hello-world
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
bw_data:
|