bunkerweb/examples/basic-website-with-php/docker-compose.yml

32 lines
746 B
YAML
Raw Normal View History

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
# 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:
- ./web-files:/www:ro
2020-10-17 15:02:42 +00:00
- ./letsencrypt:/etc/letsencrypt
environment:
- 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
- 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