diff options
-rw-r--r-- | Dockerfile | 36 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | docker-compose.yml | 32 |
3 files changed, 0 insertions, 78 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 29088229..00000000 --- a/Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -FROM python:3.8-alpine - -RUN apk update && \ - apk add \ - build-base \ - curl \ - git \ - libffi-dev \ - openssl-dev \ - libxml2-dev \ - libxslt-dev \ - libpq \ - postgresql-client \ - postgresql-dev \ - npm - -WORKDIR newspipe - -COPY newspipe newspipe/ -COPY instance instance/ -COPY runserver.py . -COPY package.json . -COPY package-lock.json . -COPY pyproject.toml . -COPY poetry.lock . -COPY wait-for-postgres.sh . - -RUN chmod +x ./wait-for-postgres.sh - -RUN mkdir node_modules -RUN npm install -RUN mkdir -p newspipe/static/npm_components -RUN cp -R node_modules/* newspipe/static/npm_components/ - -RUN pip install poetry -RUN poetry install @@ -80,16 +80,6 @@ $ export NEWSPIPE_CONFIG=postgresql.py For production you can use [Gunicorn](https://gunicorn.org) or ``mod_wsgi``. -### Deployment with Docker - -```bash -$ git clone https://git.sr.ht/~cedric/newspipe -$ cd newspipe/ -$ docker-compose up -``` - -The login will be *admin* and the password *password*. - ## License diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index efc52627..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: '3' -services: - - db: - image: postgres:latest - hostname: db - restart: always - environment: - - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=password - - POSTGRES_DB=postgres - ports: - - '5532:5432' - expose: - - '5532' - volumes: - - ./docker/postgres/data:/var/lib/postgresql/data - - newspipe: - build: - context: . - dockerfile: ./Dockerfile - tty: true - environment: - - NEWSPIPE_CONFIG=/newspipe/instance/config.py - ports: - - "5000:5000" - expose: - - '5000' - depends_on: - - db - command: "./wait-for-postgres.sh db" |