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