-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'patch_for_normalized_dates' into normalizeddates
- Loading branch information
Showing
17 changed files
with
497 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.7-slim | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy the current directory contents into the container at /app | ||
COPY . /app | ||
|
||
# Install psycopg2 dependencies | ||
RUN apt-get update && apt-get install -y libpq-dev | ||
|
||
# Install gcc | ||
RUN apt-get update && apt-get install -y gcc | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install --trusted-host pypi.python.org -r requirements.txt | ||
|
||
# Make port 8000 available to the world outside this container | ||
EXPOSE 8000 | ||
|
||
# Define environment variable | ||
ENV NAME Sefaria-Project | ||
|
||
# Run app.py when the container launches | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: '3' | ||
|
||
services: | ||
web: | ||
build: . | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- .:/app | ||
depends_on: | ||
- db | ||
- cache | ||
- postgres | ||
|
||
db: | ||
image: "mongo:4.4" | ||
ports: | ||
- "27018:27017" | ||
volumes: | ||
- mongo-data:/data/db | ||
|
||
cache: | ||
image: "redis:latest" | ||
ports: | ||
- "6379:6379" | ||
|
||
node: | ||
image: "node:latest" | ||
working_dir: /app | ||
volumes: | ||
- .:/app | ||
command: npm start | ||
ports: | ||
- "3000:3000" | ||
|
||
postgres: | ||
image: "postgres:latest" | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: admin | ||
POSTGRES_DB: sefaria | ||
ports: | ||
- "5433:5432" | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/sefaria_data | ||
|
||
volumes: | ||
mongo-data: | ||
postgres-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.