fix dockerfile for nginx
This commit is contained in:
1 parent
58ff842c08
commit
f3632b73e0
1 file changed
+4
@@ -7,6 +7,8 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- media_volume:/app/media:rw # جنگو باید بتواند فایل بنویسد
|
||||
networks:
|
||||
- coolify
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.django-router.rule=Host(`apibashgah.loolegostar.com`) && !PathPrefix(`/media/`)"
|
||||
@@ -18,6 +20,8 @@ services:
|
||||
dockerfile: Dockerfile.nginx
|
||||
volumes:
|
||||
- media_volume:/app/media:ro # انجینکس فقط باید بخواند (امنتر)
|
||||
networks:
|
||||
- coolify
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.nginx-router.rule=Host(`apibashgah.loolegostar.com`) && PathPrefix(`/media/`)"
|
||||
|
||||
Reference in new issue
Block a user