Replace nginx with static server

This commit is contained in:
Jake Howard 2020-05-09 17:14:16 +01:00
parent bb5e489f8c
commit f6214f1495
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -16,30 +16,32 @@ services:
- "traefik.http.routers.upload.tls.certresolver=le" - "traefik.http.routers.upload.tls.certresolver=le"
img: img:
image: nginx:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/img:/usr/share/nginx/html:ro - ./data/img:/srv:ro
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)" - "traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)"
- "traefik.http.routers.img.tls.certresolver=le" - "traefik.http.routers.img.tls.certresolver=le"
bg: bg:
image: nginx:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/background:/usr/share/nginx/html:ro - ./data/background:/srv:ro
environment:
- INDEX=on
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)" - "traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)"
- "traefik.http.routers.bg.tls.certresolver=le" - "traefik.http.routers.bg.tls.certresolver=le"
dl: dl:
image: nginx:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/download:/usr/share/nginx/html:ro - ./data/download:/srv:ro
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)" - "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)"