Docker Reverse Proxy
Config
cp docker-compose.yml.example `docker-compose.yml`
- Example inside a external
docker-compose.yml
version: "3.4"
services:
app:
user: root
network_mode: bridge
container_name: "frontend-server"
build:
context: .
dockerfile: Dockerfile
image: my-frontend:0.0.1
#env_file:
# - .env
environment:
- VIRTUAL_HOST=mysite.com
- VIRTUAL_PORT=4000
- LETSENCRYPT_HOST=mysite.com
- LETSENCRYPT_EMAIL=user@email.com
Startup
docker-compose up -d