Skip to content

FORK: Simple CRUD REST API with Python Django Rest Framework

Notifications You must be signed in to change notification settings

Mugen0815/crud_api

 
 

Repository files navigation

Example docker-compose.yml:

version: '3'

services:
  web:
    image: mugen0815/djangorest
    ports:
      - "8000:8000"
    volumes:
      - db:/data # Mount the volume to persist the data
    command: python manage.py runserver 0.0.0.0:8000

volumes:
  db:

Example docker-compose.yml for developing:

version: '3'

services:
  web:
    build: .
    ports:
      - "8000:8000"
    volumes:
      - ./db:/data # Mount the volume to persist the data
      - ./app:/app # Mount the app directory to the container
    command: python manage.py runserver 0.0.0.0:8000

About

FORK: Simple CRUD REST API with Python Django Rest Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.3%
  • HTML 19.0%
  • CSS 7.8%
  • Dockerfile 2.3%
  • Shell 1.6%