diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-05-01 14:11:05 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-05-01 14:11:05 +0200 |
commit | 9457ebea575f0fb6dbd571d4eb2766d21289cea7 (patch) | |
tree | ce1c3965c8c1a7c8241ef88a0ecdca25444d8e9b | |
parent | Updated URL of the project home page. (diff) | |
download | newspipe-9457ebea575f0fb6dbd571d4eb2766d21289cea7.tar.gz newspipe-9457ebea575f0fb6dbd571d4eb2766d21289cea7.tar.bz2 newspipe-9457ebea575f0fb6dbd571d4eb2766d21289cea7.zip |
Removed Dockerfile and docker-compose.yml.
-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" |