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"
img:
image: nginx:latest
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./data/img:/usr/share/nginx/html:ro
- ./data/img:/srv:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)"
- "traefik.http.routers.img.tls.certresolver=le"
bg:
image: nginx:latest
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./data/background:/usr/share/nginx/html:ro
- ./data/background:/srv:ro
environment:
- INDEX=on
labels:
- "traefik.enable=true"
- "traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)"
- "traefik.http.routers.bg.tls.certresolver=le"
dl:
image: nginx:latest
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./data/download:/usr/share/nginx/html:ro
- ./data/download:/srv:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)"