This file contains hidden or 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
version: "3.4" | |
services: | |
go: | |
build: | |
context: . | |
dockerfile: ./go/Dockerfile | |
ports: ["8000:8000"] | |
env_file: | |
- .env |
This file contains hidden or 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
FROM golang:1.12 AS build | |
WORKDIR /opt/src | |
COPY . . | |
WORKDIR /opt/src/go | |
RUN go get -d -v ./... | |
RUN go build -o quickstart | |
FROM gcr.io/distroless/base-debian10 |
This file contains hidden or 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
version: "3.4" | |
x-environment: &QUICKSTART_ENVIRONMENT | |
# These are read from .env file. The values in the .env file maybe overriden by shell envvars | |
PLAID_CLIENT_ID: ${PLAID_CLIENT_ID} | |
PLAID_SECRET: ${PLAID_SECRET} | |
PLAID_PRODUCTS: ${PLAID_PRODUCTS} | |
PLAID_COUNTRY_CODES: ${PLAID_COUNTRY_CODES} | |
PLAID_REDIRECT_URI: ${PLAID_REDIRECT_URI} | |
PLAID_ENV: ${PLAID_ENV} | |
services: |
This file contains hidden or 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
{ | |
"accounts": [ | |
{ | |
"account_id": "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp", | |
"balances": { | |
"available": 100, | |
"current": 110, | |
"iso_currency_code": "USD", | |
"limit": null, | |
"unofficial_currency_code": null |
This file contains hidden or 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
version: "3" | |
services: | |
neo4j: | |
container_name: neo4j | |
image: neo4j:latest | |
volumes: | |
- ./neo4j/data:/data | |
- ./neo4j/logs:/logs | |
- ./neo4j/import:/var/lib/neo4j/import | |
- ./neo4j/plugins:/plugins |
This file contains hidden or 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
ARG GO_VERSION=1.15.3 | |
ARG ALPINE_VERSION=latest | |
FROM golang:${GO_VERSION}-alpine AS builder | |
ARG SEABOLT_VERSION=v1.7.4 | |
RUN apk add --update --no-cache ca-certificates cmake make g++ openssl-dev openssl-libs-static git curl pkgconfig libcap | |
RUN git clone -b ${SEABOLT_VERSION} https://github.com/neo4j-drivers/seabolt.git /seabolt | |
RUN update-ca-certificates 2>/dev/null || true |
This file contains hidden or 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
{ | |
"accounts": [ | |
{ | |
"account_id": "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp", | |
"balances": { | |
"available": 100, | |
"current": 110, | |
"iso_currency_code": "USD", | |
"limit": null, | |
"unofficial_currency_code": null |
This file contains hidden or 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
version: '3' | |
services: | |
chatsume: | |
build: . | |
container_name: "chsme" | |
ports: | |
- "8000:8080" | |
volumes: | |
- ./app/:/app |
This file contains hidden or 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
FROM python:3.7 | |
COPY ./requirements/requirements.txt ./requirements/requirements.txt | |
RUN pip3 install -r requirements/requirements.txt | |
COPY ./app /app | |
RUN useradd -m myuser | |
USER myuser | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"] |
This file contains hidden or 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
from fastapi import FastAPI | |
from fastapi.middleware.cors import CORSMiddleware | |
from pydantic import BaseModel | |
from app.nlp import NLP | |
class Message(BaseModel): | |
input: str | |
output: str = None | |
app = FastAPI() |