forked from TralaleritosTralalas/SoftwareProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (22 loc) · 938 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (22 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Docker Compose file -- defines how to run the project's containers
services:
# The Django web application
web:
# Build the image using the Dockerfile in the current directory (./Dockerfile)
build: .
environment:
SECRET_KEY: django-insecure-e@p&465=fx5(a#@t7q!1*-3z@3@-&1ar-v29!zr1hvn+fj$8g$
DEBUG: False
ALLOWED_HOSTS: localhost,127.0.0.1,0.0.0.0
# Map port 8000 on your machine to port 8000 in the container
# Access the app at http://localhost:8000
ports:
- "8000:8000"
# Mount the current directory into /app in the container
# This means code changes on your machine are reflected instantly (live reload)
volumes:
- .:/app # "." = your project folder, "/app" = where it goes inside the container
# Named volumes (folders managed by Docker that live outside the containers)
# They keep data even if you delete and recreate the containers
volumes:
pgdata: