bunkerweb/examples/ghost/docker-compose.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-26 15:00:23 +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
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
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
2021-04-26 15:00:23 +00:00
volumes:
2022-06-03 15:24:14 +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
2021-04-26 15:00:23 +00:00
- SERVE_FILES=no
- DISABLE_DEFAULT_SERVER=yes
- AUTO_LETS_ENCRYPT=yes
2022-06-03 15:24:14 +00:00
- USE_CLIENT_CACHE=yes
2021-04-26 15:00:23 +00:00
- USE_GZIP=yes
- USE_REVERSE_PROXY=yes
- REVERSE_PROXY_URL=/
2022-06-03 15:24:14 +00:00
- REVERSE_PROXY_HOST=http://myghost:2368
2021-04-26 15:00:23 +00:00
myghost:
image: ghost:alpine
volumes:
2022-06-03 15:24:14 +00:00
- ./ghost-data:/var/lib/ghost/content
2021-04-26 15:00:23 +00:00
environment:
2022-06-16 09:26:58 +00:00
- url=https://www.example.com # replace with your domain
2022-06-03 15:24:14 +00:00
volumes:
2022-06-16 09:26:58 +00:00
bw_data: