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

37 lines
827 B
YAML
Raw Normal View History

2020-10-17 15:02:42 +00:00
version: '3'
services:
myreverse:
image: bunkerity/bunkerized-nginx
restart: always
ports:
2020-10-26 21:46:15 +00:00
- 80:8080
- 443:8443
2020-10-17 15:02:42 +00:00
volumes:
2020-10-17 23:41:29 +00:00
- ./letsencrypt:/etc/letsencrypt
- ./server-confs:/server-confs
2020-10-17 15:02:42 +00:00
environment:
2020-10-17 23:41:29 +00:00
- SERVER_NAME=app1.website.com app2.website.com # replace with your domains
2020-10-17 15:02:42 +00:00
- SERVE_FILES=no
- DISABLE_DEFAULT_SERVER=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- AUTO_LETS_ENCRYPT=yes
2020-10-17 23:41:29 +00:00
app1:
image: node
restart: always
working_dir: /home/node/app
volumes:
- ./js-app:/home/node/app
environment:
- NODE_ENV=production
command: bash -c "npm install express && node index.js"
app2:
image: phpmyadmin:apache
restart: always
environment:
- PMA_ARBITRARY=1
- PMA_ABSOLUTE_URI=https://app2.website.com