Files
mkspc-mgmt/docker/docker-compose.yml
2023-05-29 17:41:48 +02:00

29 lines
549 B
YAML
Executable File

version: '3'
services:
web:
container_name: web
build:
context: nginx
dockerfile: Dockerfile
ports:
- 80:80
volumes:
- django-static:/var/www/html/static
working_dir: /etc/nginx
links:
- app
app:
container_name: app
build:
context: ..
dockerfile: Dockerfile
environment:
DJANGO_SECRET_KEY: $DJANGO_SECRET_KEY
ALLOWED_HOSTS: $ALLOWED_HOSTS
volumes:
- django-static:/var/www/html/static
working_dir: /django_project
volumes:
django-static: