2
0
mirror of https://github.com/offen/website.git synced 2024-11-21 08:40:27 +01:00

use dedicated server for static assets in development

This commit is contained in:
Frederik Ring 2020-12-17 16:14:54 +01:00
parent d460491ce7
commit 8bdb79f190

View File

@ -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: