~cedric/newspipe

9457ebea575f0fb6dbd571d4eb2766d21289cea7 — Cédric Bonhomme 11 months ago cc62722
Removed Dockerfile and docker-compose.yml.
3 files changed, 0 insertions(+), 78 deletions(-)

D Dockerfile
M README.md
D docker-compose.yml
D Dockerfile => Dockerfile +0 -36
@@ 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

M README.md => README.md +0 -10
@@ 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


D docker-compose.yml => docker-compose.yml +0 -32
@@ 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"