29 lines
534 B
YAML
29 lines
534 B
YAML
|
version: '3.3'
|
||
|
|
||
|
services:
|
||
|
web:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
command: python manage.py runserver 0.0.0.0:8000
|
||
|
volumes:
|
||
|
- ./:/usr/src/app/
|
||
|
ports:
|
||
|
- 8000:8000
|
||
|
env_file:
|
||
|
- ./.env.dev
|
||
|
depends_on:
|
||
|
- db_dev
|
||
|
|
||
|
db_dev:
|
||
|
image: postgres:14.5-alpine
|
||
|
volumes:
|
||
|
- postgres_data_dev:/var/lib/postgresql/data/
|
||
|
environment:
|
||
|
- POSTGRES_USER=django
|
||
|
- POSTGRES_PASSWORD=pwddjango
|
||
|
- POSTGRES_DB=django_dev
|
||
|
|
||
|
volumes:
|
||
|
postgres_data_dev:
|