Replace nginx with static server
This commit is contained in:
parent
bb5e489f8c
commit
f6214f1495
1 changed files with 8 additions and 6 deletions
|
@ -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`)"
|
||||||
|
|
Loading…
Reference in a new issue