bunkerweb/examples/reverse-proxy-multisite/docker-compose.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2020-10-17 15:02:42 +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-17 15:02:42 +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
# 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
# or for an existing one : chown -R root:101 folder && chmod -R 770 folder
# more info at https://docs.bunkerweb.io
2020-10-17 15:02:42 +00:00
volumes:
2022-06-03 15:24:14 +00:00
- bw_data:/data
2020-10-17 15:02:42 +00:00
environment:
2020-11-18 14:21:08 +00:00
- MULTISITE=yes
2022-06-03 15:24:14 +00:00
- SERVER_NAME=app1.example.com app2.example.com # replace with your domains
2020-10-17 15:02:42 +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
- USE_GZIP=yes
- USE_REVERSE_PROXY=yes
- app1.example.com_REVERSE_PROXY_URL=/
- app1.example.com_REVERSE_PROXY_HOST=http://app1
- app2.example.com_REVERSE_PROXY_URL=/
- app2.example.com_REVERSE_PROXY_HOST=http://app2
2022-06-03 15:24:14 +00:00
networks:
- net_app1
- net_app2
2020-10-17 15:02:42 +00:00
2020-10-17 23:41:29 +00:00
app1:
image: tutum/hello-world
2022-06-03 15:24:14 +00:00
networks:
- net_app1
2020-10-17 23:41:29 +00:00
app2:
2022-06-03 15:24:14 +00:00
image: tutum/hello-world
networks:
- net_app2
volumes:
bw_data:
networks:
net_app1:
net_app2: