From f6214f149524e80d0bd240b2c1084d2bdf602ad6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 May 2020 17:14:16 +0100 Subject: [PATCH] Replace nginx with static server --- ansible/roles/upload/files/docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ansible/roles/upload/files/docker-compose.yml b/ansible/roles/upload/files/docker-compose.yml index b82d62f..d18776e 100644 --- a/ansible/roles/upload/files/docker-compose.yml +++ b/ansible/roles/upload/files/docker-compose.yml @@ -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`)"