{"id":13858986,"url":"https://github.com/TypesetIO/pkp-ojs-docker","last_synced_at":"2025-07-14T01:32:29.472Z","repository":{"id":77108703,"uuid":"151672790","full_name":"TypesetIO/pkp-ojs-docker","owner":"TypesetIO","description":"Docker file complete with docker-compose for setting up a super simple OJS installation","archived":false,"fork":false,"pushed_at":"2019-03-26T22:32:50.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-06T03:06:32.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TypesetIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-10-05T05:02:47.000Z","updated_at":"2019-03-26T22:32:51.000Z","dependencies_parsed_at":"2023-02-27T07:45:43.331Z","dependency_job_id":null,"html_url":"https://github.com/TypesetIO/pkp-ojs-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypesetIO%2Fpkp-ojs-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypesetIO%2Fpkp-ojs-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypesetIO%2Fpkp-ojs-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypesetIO%2Fpkp-ojs-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TypesetIO","download_url":"https://codeload.github.com/TypesetIO/pkp-ojs-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225938740,"owners_count":17548543,"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":[],"created_at":"2024-08-05T03:02:28.561Z","updated_at":"2024-11-22T17:30:34.810Z","avatar_url":"https://github.com/TypesetIO.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"Dockerizing OJS (Open Journal Systems) - PKP\n============================================\nOpen Journal Systems (OJS) is a journal management and publishing system that has been developed by the Public Knowledge Project through its federally funded efforts to expand and improve access to research.\n\nOrigin:\nA lot of the work on this was done by SciELO at https://bitbucket.org/infra-scielo/pkp-ojs/src\n\nWe have added docker-compose to make things easier.\n\n## How to use the docker-compose configuration\n\n```\ndocker-compose up -d -e SERVERNAME=ojs.yourdomain.com\n```\n\n## How to use the image without docker-compose\n```\n$docker run -p 80:80 --link some-mysql:mysql -d infrascielo/pkp-ojs\n```\n* -e OJS_DB_HOST=... (default top localhost. Must be change to IP and port of the linked mysql container)\n* -e OJS_DB_USER=... (default to ojs)\n* -e OJS_DB_PASSWORD=... (default to ojs)\n* -e OJS_DB_NAME=... (default to ojs)\n* -e SERVERNAME=...(default to ojs-v3.scielo.org)\n* -e APACHE_LOG_DIR=... (default to /var/log/apache2)\n* -e LOG_NAME=...(default to 0js-v3_scielo_org)\n\nThe pkp-ojs container expect a mysql container to work. So, you need to run mysql container first. Don't forget to specify a container name to mysql to work with --link. The link option create a relationship with each other.\n\n```\ndocker run --name \u003csome-mysql\u003e \\\n           -e MYSQL_ROOT_PASSWORD=\u003cpassword\u003e  \\\n           -e MYSQL_USER=\u003cuser\u003e \\\n           -e MYSQL_PASSWORD=\u003cpassword\u003e \\\n           -d mysql\n```\n\nThe instruction above creates container setting mysql root password and creates other user and its respective password.\n\nAfter create mysql container you can can run the omp container.\n\n**Sample**\n```\n$ docker run --name mysql \\\n              -e MYSQL_ROOT_PASSWORD=ojs  \\\n              -e MYSQL_USER=ojs \\\n              -e MYSQL_PASSWORD=ojs \\\n              -d mysql\n```\n```\n$ docker run -p 80:80 \\\n             -e OJS_DB_HOST=mysql \\\n             -e OJS_DB_USER=root \\\n             -e OJS_DB_PASSWORD=ojs \\\n             --link mysql:mysql \\\n             -d infrascielo/pkp-ojs:3.0b1\n```\n\nImportant points\n================\nIf you would like to save logs it is necessary to specify volume when run containers. Follow example:\n```\n$ docker run -p 80:80 \\\n             -e OJS_DB_HOST=mysql \\\n             -e OJS_DB_USER=root \\\n             -e OJS_DB_PASSWORD=ojs \\\n             -e APACHE_LOG_DIR=/var/log/apache2 \\\n             -e LOG_NAME=0js-v3_scielo_org \\\n             -v /var/www/apache2:/var/www/apache2 \\\n             --link mysql:mysql \\\n             -d infrascielo/pkp-ojs:3.0b1\n```\n* The parameter **-v /var/www/apache2:/var/www/apache2** allows to mount /var/www/apache2 to save logs outside the container","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTypesetIO%2Fpkp-ojs-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTypesetIO%2Fpkp-ojs-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTypesetIO%2Fpkp-ojs-docker/lists"}