{"id":14981054,"url":"https://github.com/alexfer/docker","last_synced_at":"2026-02-15T15:02:11.430Z","repository":{"id":248348614,"uuid":"828450643","full_name":"alexfer/docker","owner":"alexfer","description":"Docker - Nginx, PHP, Postgres, Elastic, Supevisor and Mercure","archived":false,"fork":false,"pushed_at":"2025-01-21T07:02:19.000Z","size":2372,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T22:01:50.125Z","etag":null,"topics":["docker","docker-compose","elasticsearch","mercure","nginx","php8","postgresql","supervisor"],"latest_commit_sha":null,"homepage":"https://github.com/alexfer","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/alexfer.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":"2024-07-14T07:28:15.000Z","updated_at":"2025-01-21T07:02:23.000Z","dependencies_parsed_at":"2024-08-23T04:43:48.975Z","dependency_job_id":"3c1c5a68-6bf5-42e2-b1fe-0670167ab2d7","html_url":"https://github.com/alexfer/docker","commit_stats":{"total_commits":53,"total_committers":4,"mean_commits":13.25,"dds":"0.49056603773584906","last_synced_commit":"e646cbfad5c620e4fdbddad2195383f8f2b39f90"},"previous_names":["alexfer/docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfer%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfer%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfer%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfer%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfer","download_url":"https://codeload.github.com/alexfer/docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238768420,"owners_count":19527197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-compose","elasticsearch","mercure","nginx","php8","postgresql","supervisor"],"created_at":"2024-09-24T14:02:48.120Z","updated_at":"2025-10-29T04:31:33.338Z","avatar_url":"https://github.com/alexfer.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)\n\nCreating and deploying postgres database\n============\n\u003e [!IMPORTANT]\n\u003e  In the docker directory go over:\n### Deploy source code\n\n```shell\n$ cd dev/project/\n$ git clone git@github.com:alexfer/inno.git\n$ cd inno\n$ cp .env.dist .env # symfony configuration\n$ composer install\n$ npm install\n$ npm run dev --watch\n````\n### Build docker\n#### Run following commands and fill .env file:\n````shell\n$ cd docker\n````\n#### Fill out .env file:\n````shell\n$ cp .env.dist .env # docker configuration\n$ docker-compose up -d --build\n````\n### Clear logs\n````shell\n./clear-logs.sh\n````\n### Create database \u0026 grant privileges to database\nLogin to postgres container:\n````shell\n$ docker exec -it postgres sh\npsql -U postgres\n````\nNext step:\n````sql\nDROP ROLE IF EXISTS inno; -- optional\nCREATE USER inno WITH password 'inno';\nALTER USER inno WITH SUPERUSER;\nALTER USER inno CREATEDB;\nCREATE DATABASE inno OWNER inno;\nGRANT ALL PRIVILEGES ON DATABASE inno TO inno;\n````\nDeploy database:\n````shell\n$ docker exec -it php bash\n$ cd root_project_dir\n$ rm -rfv src/Migrations/* # optional (if migrations exists)\n$ php bin/console doctrine:database:drop --if-exists --force # optional\n$ php bin/console doctrine:database:create # optional\n$ php bin/console make:migration --no-interaction # optional (if migrations doesn't exists)\n$ php bin/console doctrine:migrations:migrate --no-interaction\n$ php bin/console doctrine:fixtures:load --no-interaction\n$ php bin/console app:functions:import --no-interaction\n````\nClear database Redis:\n````shell\ndocker exec -it redis redis-cli FLUSHALL\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfer%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfer%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfer%2Fdocker/lists"}