add dockerfile for nginx
This commit is contained in:
1 parent
4ee85a75e6
commit
7f68286126
2 files changed
+4
-1
No files matched your search
@@ -0,0 +1,2 @@
|
||||
FROM nginx:alpine
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
+2
-1
@@ -13,7 +13,8 @@ services:
|
||||
- "traefik.http.services.django-service.loadbalancer.server.port=8000"
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
context: .
|
||||
dockerfile: Dockerfile.nginx
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- media_volume:/app/media:ro # انجینکس فقط باید بخواند (امنتر)
|
||||
|
||||
Reference in new issue
Block a user