From 8bdb79f190d6d677a7fa35b4a5692fca5e9bf02a Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 17 Dec 2020 16:14:54 +0100 Subject: [PATCH] use dedicated server for static assets in development --- docker-compose.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8668a44..b2d9edc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,13 @@ version: '3' services: - homepage: + proxy: + image: nginx:1.17-alpine + volumes: + - output:/usr/share/nginx/html ports: - - 8000:8000 + - 8000:80 + homepage: build: context: '.' dockerfile: ./Dockerfile.python @@ -11,9 +15,11 @@ services: volumes: - .:/website - homepagedeps:/root/.local - command: make devserver + - output:/website/homepage/output + command: make regenerate environment: DEBUG: 1 volumes: homepagedeps: + output: