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

29 lines
587 B
YAML
Raw Normal View History

2020-10-17 15:02:42 +00:00
version: '3'
services:
mywww:
image: bunkerity/bunkerized-nginx
restart: always
ports:
2020-10-26 21:46:15 +00:00
- 80:8080
2020-10-27 20:33:05 +00:00
- 443:8443
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:
2020-10-17 23:41:29 +00:00
- SERVER_NAME=www.website.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