gmba_django/docker-compose.yml

27 lines
481 B
YAML
Raw Normal View History

2022-08-25 04:56:17 +00:00
version: "3.9"
services:
db:
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
environment:
- POSTGRES_NAME=app
- POSTGRES_USER=app
- POSTGRES_PASSWORD=
depends_on:
- db