2020-10-17 15:02:42 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
mywww:
|
|
|
|
|
image: bunkerity/bunkerized-nginx
|
2021-06-07 08:30:33 +00:00
|
|
|
depends_on:
|
|
|
|
|
- myphp
|
2020-10-17 15:02:42 +00:00
|
|
|
ports:
|
2020-10-26 21:46:15 +00:00
|
|
|
- 80:8080
|
2020-10-27 20:33:05 +00:00
|
|
|
- 443:8443
|
2021-05-15 19:08:35 +00:00
|
|
|
# bunkerized-nginx runs as an unprivileged user with UID/GID 101
|
|
|
|
|
# don't forget to edit the permissions of the files and folders accordingly
|
2020-10-17 15:02:42 +00:00
|
|
|
volumes:
|
2020-11-15 13:55:48 +00:00
|
|
|
- ./web-files:/www:ro
|
2020-10-17 15:02:42 +00:00
|
|
|
- ./letsencrypt:/etc/letsencrypt
|
|
|
|
|
environment:
|
2021-07-16 07:40:02 +00:00
|
|
|
- SERVER_NAME=www.example.com # replace with your domain
|
2020-10-17 15:02:42 +00:00
|
|
|
- AUTO_LETS_ENCRYPT=yes
|
|
|
|
|
- REDIRECT_HTTP_TO_HTTPS=yes
|
|
|
|
|
- DISABLE_DEFAULT_SERVER=yes
|
2020-11-13 16:57:39 +00:00
|
|
|
- USE_CLIENT_CACHE=yes
|
2020-11-15 13:55:48 +00:00
|
|
|
- USE_GZIP=yes
|
2020-10-17 15:02:42 +00:00
|
|
|
- REMOTE_PHP=myphp
|
|
|
|
|
- REMOTE_PHP_PATH=/app
|
|
|
|
|
|
|
|
|
|
myphp:
|
|
|
|
|
image: php:fpm
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./web-files:/app
|