Browse Source

Added simple nginx webserver and traefik routing.

master
Daniel Sissom 1 year ago
parent
commit
daab7935ad
Signed by: djsissom GPG Key ID: 2C30FFB796852389
2 changed files with 15 additions and 1 deletions
  1. + 1
    - 1
      .env
  2. + 14
    - 0
      docker-compose.yml

+ 1
- 1
.env

@ -1,2 +1,2 @@
COMPOSE_PATH_SEPARATOR=: COMPOSE_PATH_SEPARATOR=:
COMPOSE_FILE=docker-compose.yml:./www/docker-compose.yml:./service/docker-compose.yml
COMPOSE_FILE=docker-compose.yml:./service/docker-compose.yml

+ 14
- 0
docker-compose.yml

@ -0,0 +1,14 @@
version: '3'
services:
www:
image: nginx
volumes:
- ./www:/usr/share/nginx/html:ro
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.https.routers.www.rule=(Host(`example.com`) || Host(`www.example.com`))
- traefik.https.routers.www.tls.certResolver=myresolver
- traefik.https.routers.www.tls.domains[0].main=example.com
- traefik.https.routers.www.tls.domains[0].sans=www.example.com

Loading…
Cancel
Save