Code Monkey home page Code Monkey logo

packagist-docker's Introduction

DEPRECATED

The source code has been moved to the main repository. Use a new packeton/packeton image

Packeton Docker image for v1 version (DEPRECATED).

Docker image for private packagist packeton.

Usage

To boot in standalone mode

docker run okvpn/packeton:latest

Environment variables

  • PRIVATE_REPO_DOMAIN_LIST - Save ssh fingerprints to known_hosts for this domain.

  • PACKAGIST_DIST_HOST - Packagist host (example https://packagist.youcomany.org). Used for downloading the mirroring zip packages. (The host add into dist url for composer metadata).

  • DATABASE_DRIVER - Specify database driver (pdo_mysql, pdo_pgsql)

  • DATABASE_HOST - Specify hostname of the database

  • DATABASE_PORT - Specify port of the database (optional)

  • DATABASE_USER - Specify user to use to authenticate to the database

  • DATABASE_NAME - Specify database name

  • DATABASE_PASSWORD - Specify database password

  • ADMIN_USER - Creating admin account, by default there is no admin user created so you won't be able to login to the packagist. To create an admin account you need to use environment variables to pass in an initial username and password (ADMIN_PASSWORD, ADMIN_EMAIL)

  • ADMIN_PASSWORD - used together with ADMIN_USER

  • ADMIN_EMAIL - used together with ADMIN_USER

  • GITHUB_NO_API - used to disable GitHub api, (always clone repo using ssh key) GITHUB_NO_API='true'

The typical example docker-compose.yml

version: '2'

services:
    postgres:
        hostname: postgres
        container_name: pgsql-pkg
        image: postgres:9.6
        volumes:
            - .docker/db:/var/lib/postgresql/data
        environment:
            POSTGRES_DB: packagist
            POSTGRES_PASSWORD: 123456
        expose:
            - "5432"
    packagist:
        image: okvpn/packeton:latest
        container_name: packagist
        hostname: packagist
        volumes:
            - .docker/data:/var/tmp/data
            - .docker/redis:/var/lib/redis
            - .docker/zipball:/var/www/packagist/app/zipball
            - .docker/composer:/var/www/.composer
            - .docker/ssh:/var/www/.ssh
        links:
            - "postgres"
        environment:
            PRIVATE_REPO_DOMAIN_LIST: bitbucket.org gitlab.com github.com
            PACKAGIST_DIST_HOST: https://pkg.okvpn.org
            DATABASE_HOST: postgres
            DATABASE_PORT: 5432
            DATABASE_DRIVER: pdo_pgsql
            DATABASE_USER: postgres
            DATABASE_NAME: packagist
            DATABASE_PASSWORD: 123456
            ADMIN_USER: admin
            ADMIN_PASSWORD: composer
            ADMIN_EMAIL: [email protected]
            GITHUB_NO_API: 'true'
        ports:
            - 127.0.0.1:8088:80

packagist-docker's People

Contributors

vtsykun avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

packagist-docker's Issues

Does not follow the docker best-practises of running 1 foreground app per container

Just wanted to point out that (if I understood this repo correctly) that this Docker deployment does not follow the docker best-practices of running 1 foreground app per container.

It looks like the container runs supervisor and uses that to start everything else, instead of creating multiple containers and linking those together.

Was this a conscious decision or is there some reason to it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.