mirror of
https://github.com/offen/website.git
synced 2024-11-21 16:50:27 +01:00
use dedicated server for static assets in development
This commit is contained in:
parent
d460491ce7
commit
8bdb79f190
@ -1,9 +1,13 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
homepage:
|
proxy:
|
||||||
|
image: nginx:1.17-alpine
|
||||||
|
volumes:
|
||||||
|
- output:/usr/share/nginx/html
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:80
|
||||||
|
homepage:
|
||||||
build:
|
build:
|
||||||
context: '.'
|
context: '.'
|
||||||
dockerfile: ./Dockerfile.python
|
dockerfile: ./Dockerfile.python
|
||||||
@ -11,9 +15,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- .:/website
|
- .:/website
|
||||||
- homepagedeps:/root/.local
|
- homepagedeps:/root/.local
|
||||||
command: make devserver
|
- output:/website/homepage/output
|
||||||
|
command: make regenerate
|
||||||
environment:
|
environment:
|
||||||
DEBUG: 1
|
DEBUG: 1
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
homepagedeps:
|
homepagedeps:
|
||||||
|
output:
|
||||||
|
Loading…
Reference in New Issue
Block a user