Files
bearingsinfo/docker-compose.yml

38 lines
851 B
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
image: baza:latest
container_name: baza-app
volumes:
- ./data:/app/data
- ./docs:/app/docs
- ./sources:/app/sources
environment:
- PYTHONPATH=/app
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
ports:
- "8000:8000"
# Uses the Dockerfile FastAPI CMD; the CLI remains accessible via docker compose run app python manage.py <command>.
restart: unless-stopped
user: "1000:1000"
dev:
build:
context: .
dockerfile: Dockerfile
image: baza:latest
container_name: baza-dev
volumes:
- .:/app
environment:
- PYTHONPATH=/app
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
command: /bin/bash
stdin_open: true
tty: true
user: "1000:1000"