ref: update compose file
This commit is contained in:
@@ -2,27 +2,27 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
container_name: web
|
container_name: web
|
||||||
build:
|
build: ./docker/web/Dockerfile
|
||||||
context: nginx
|
working_dir: /etc/nginx
|
||||||
dockerfile: Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- django-static:/var/www/html/static
|
- django-static:/var/www/html/static
|
||||||
working_dir: /etc/nginx
|
|
||||||
links:
|
links:
|
||||||
- app
|
- app
|
||||||
|
restart: "on-failure"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
container_name: app
|
container_name: app
|
||||||
build:
|
build: ./Dockerfile
|
||||||
context: ..
|
working_dir: /django_project
|
||||||
dockerfile: Dockerfile
|
|
||||||
environment:
|
environment:
|
||||||
DJANGO_SECRET_KEY: $DJANGO_SECRET_KEY
|
DJANGO_SECRET_KEY: $DJANGO_SECRET_KEY
|
||||||
ALLOWED_HOSTS: $ALLOWED_HOSTS
|
ALLOWED_HOSTS: $ALLOWED_HOSTS
|
||||||
volumes:
|
volumes:
|
||||||
- django-static:/var/www/html/static
|
- django-static:/var/www/html/static
|
||||||
working_dir: /django_project
|
- ./data:/django_project/data:rw
|
||||||
|
restart: "on-failure"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
django-static:
|
django-static:
|
||||||
Reference in New Issue
Block a user