mirror of
https://github.com/more-tech4-magnum-opus/backend.git
synced 2024-11-24 04:23:42 +03:00
26 lines
492 B
YAML
26 lines
492 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- ./data/db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=moretech
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=debug
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- POSTGRES_NAME=postgres
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
depends_on:
|
|
- db
|
|
|