Change to nginx for serving wger
This commit is contained in:
parent
c1d77f8f5b
commit
f590d797b2
@ -19,8 +19,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /docker/appdata/wger/web/static:/home/wger/static
|
- /docker/appdata/wger/web/static:/home/wger/static
|
||||||
- /docker/appdata/wger/web/media:/home/wger/media
|
- /docker/appdata/wger/web/media:/home/wger/media
|
||||||
ports:
|
expose:
|
||||||
- "9002:8000"
|
- 8000
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: wget --no-verbose --tries=1 --spider http://localhost:8000
|
test: wget --no-verbose --tries=1 --spider http://localhost:8000
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@ -29,14 +29,23 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
static:
|
nginx:
|
||||||
image: joseluisq/static-web-server:latest
|
image: nginx:stable
|
||||||
container_name: wger_static
|
depends_on:
|
||||||
restart: unless-stopped
|
- web
|
||||||
environment:
|
|
||||||
- SERVER_ROOT=/var/public
|
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/appdata/wger/web:/var/public
|
- /docker/appdata/wger/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
- /docker/appdata/wger/web/static:/wger/static:ro
|
||||||
|
- /docker/appdata/wger/web/media:/wger/media:ro
|
||||||
|
ports:
|
||||||
|
- "9002:80"
|
||||||
|
healthcheck:
|
||||||
|
test: service nginx status
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
|
Loading…
Reference in New Issue
Block a user