services:
  web:
    build: .
    command: sh -c "python manage.py tailwind dev & python manage.py runserver 0.0.0.0:8000"
    volumes:
      - .:/app
    ports:
      - "8024:8000"
    depends_on:
      - db
    env_file:
      - .env
  db:
    image: postgres:13
    volumes:
      - postgres_data:/var/lib/postgresql/data/
    env_file:
      - .env

volumes:
  postgres_data:
