32 lines
642 B
YAML
32 lines
642 B
YAML
services:
|
|
web:
|
|
build: .
|
|
container_name: nohype-web
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "8035:8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
DATABASE_URL: postgres://nohype:nohype@db:5432/nohype
|
|
DJANGO_SETTINGS_MODULE: config.settings.development
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: nohype-db
|
|
environment:
|
|
POSTGRES_DB: nohype
|
|
POSTGRES_USER: nohype
|
|
POSTGRES_PASSWORD: nohype
|
|
ports:
|
|
- "5545:5432"
|
|
volumes:
|
|
- nohype_pg:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
nohype_pg:
|