{"id":21392805,"url":"https://github.com/pvital/django-compose-base","last_synced_at":"2026-05-17T13:32:34.731Z","repository":{"id":82962163,"uuid":"101411461","full_name":"pvital/django-compose-base","owner":"pvital","description":"Docker-compose files to start a Django structure and start up any new project.","archived":false,"fork":false,"pushed_at":"2020-08-11T19:30:26.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T13:44:08.509Z","etag":null,"topics":["django","docker-compose"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pvital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-25T14:24:31.000Z","updated_at":"2020-08-11T19:30:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fc9f633-4c9f-433c-9c80-60ba4ed88e48","html_url":"https://github.com/pvital/django-compose-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pvital/django-compose-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Fdjango-compose-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Fdjango-compose-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Fdjango-compose-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Fdjango-compose-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvital","download_url":"https://codeload.github.com/pvital/django-compose-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Fdjango-compose-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33140336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","docker-compose"],"created_at":"2024-11-22T13:44:36.929Z","updated_at":"2026-05-17T13:32:34.701Z","avatar_url":"https://github.com/pvital.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-compose-base\n\nDocker-compose files to start a Django structure and start up any new project.\n\n## How to Use\n\nTo start-up your Django structure, just execute:\n\n```\n$ docker-compose run web django-admin.py startproject \u003cproject_name\u003e .\n```\n\nThis will download the Docker images to create the composed containers and create the Django structure in the directory you executed the command.  After the docker-compose command completes, list the contents of your project:\n\n```\n $ ls -l\n drwxr-xr-x 2 root   root   \u003cproject_name\u003e\n -rw-rw-r-- 1 user   user   docker-compose.yml\n -rw-rw-r-- 1 user   user   Dockerfile\n -rwxr-xr-x 1 root   root   manage.py\n -rw-rw-r-- 1 user   user   requirements.txt\n ```\n \nIf you are running Docker on Linux, the files django-admin created are owned by root. This happens because the container runs as the root user. Change the ownership of the new files.\n\nAfter that, edit the composeexample/settings.py file to configure Django to use PostgreSQL as database, by replacing the ```DATABASES = ...``` configuration with the following:\n\n```\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.postgresql',\n        'NAME': 'postgres',\n        'USER': 'postgres',\n        'HOST': 'db',\n        'PORT': 5432,\n    }\n}\n```\n\nSave and close the file, then run the ```docker-compose up``` command from the top level directory for your project.\n\n```\n$ docker-compose up\ndjangosample_db_1 is up-to-date\nCreating djangosample_web_1 ...\nCreating djangosample_web_1 ... done\nAttaching to djangosample_db_1, djangosample_web_1\ndb_1   | The files belonging to this database system will be owned by user \"postgres\".\ndb_1   | This user must also own the server process.\ndb_1   |\ndb_1   | The database cluster will be initialized with locale \"en_US.utf8\".\ndb_1   | The default database encoding has accordingly been set to \"UTF8\".\ndb_1   | The default text search configuration will be set to \"english\".\n\n. . .\n\nweb_1  | May 30, 2017 - 21:44:49\nweb_1  | Django version 1.11.1, using settings 'composeexample.settings'\nweb_1  | Starting development server at http://0.0.0.0:8000/\nweb_1  | Quit the server with CONTROL-C.\n```\n\nAt this point, your Django application should be running at port 8000 on your Docker host. Go to http://localhost:8000 on a web browser to see the Django welcome page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvital%2Fdjango-compose-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvital%2Fdjango-compose-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvital%2Fdjango-compose-base/lists"}