-
-
Notifications
You must be signed in to change notification settings - Fork 955
/
docker-compose.yml
33 lines (32 loc) · 970 Bytes
/
docker-compose.yml
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
28
29
30
31
32
33
version: "3.7"
services:
web:
build:
context: ./
dockerfile: Dockerfile
args:
- REQ_FILE=requirements/tests.txt
entrypoint: ./docker-entrypoint.dev.sh
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/app/
ports:
- 8000:8000
environment:
- SECRET_KEY=foo
- DJANGOPROJECT_DATA_DIR=./data
- DJANGO_SETTINGS_MODULE=djangoproject.settings.docker
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=djangoproject
- SQL_USER=djangoproject
- SQL_PASSWORD=secret
- SQL_HOST=db
- SQL_PORT=5432
depends_on:
- db
db:
image: postgres:14-alpine
environment:
- POSTGRES_USER=djangoproject
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=djangoproject