-
-
Notifications
You must be signed in to change notification settings - Fork 965
/
docker-compose.yml
31 lines (31 loc) · 954 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
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