-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3420327
Showing
271 changed files
with
19,046 additions
and
0 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 @@ | ||
PORT_PREFIX=${PORT_PREFIX} | ||
CONTAINER_PREFIX=${USER} | ||
AZURE_API_ENDPOINT=${AZURE_API_ENDPOINT} | ||
AZURE_GPT35_MODEL=${AZURE_GPT35_MODEL} | ||
AZURE_GPT4_MODEL=${AZURE_GPT4_MODEL} | ||
AZURE_GPT4o_MODEL=${AZURE_GPT4o_MODEL} | ||
AZURE_API_VERSION=${AZURE_API_VERSION} | ||
ADMIN_EMAILS=${ADMIN_EMAILS} | ||
GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID} | ||
GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET} | ||
|
||
# NATS | ||
FASTSTREAM_NATS_PASSWORD=faststream_password # pragma: allowlist secret | ||
WASP_NATS_PASSWORD=wasp_password # pragma: allowlist secret | ||
AUTH_NATS_PASSWORD=auth_password # pragma: allowlist secret | ||
NATS_PUB_NKEY=AA7OOBD2J2YSBEYNN4GCX6CLUHNE4XPKZC4LUY66ALSG52JWFU6VYRZ2 # pragma: allowlist secret | ||
NATS_PRIV_NKEY=SAALYZUPN235PN72VRMNHL26UQOMIFKLQANMFUAPQIAE5BXCS5X65WB4BI # pragma: allowlist secret | ||
|
||
# LLM keys | ||
ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} | ||
AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY} | ||
OPENAI_API_KEY=${OPENAI_API_KEY} | ||
TOGETHER_API_KEY=${TOGETHER_API_KEY} | ||
|
||
# BING key | ||
BING_API_KEY=${BING_API_KEY} |
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,33 @@ | ||
websocket { | ||
# listen: localhost:9222 | ||
port: 9222 | ||
no_tls: true | ||
compress: true | ||
} | ||
|
||
jetstream {} | ||
|
||
accounts { | ||
AUTH { | ||
jetstream: enabled | ||
users: [ | ||
{ user: auth, password: $AUTH_NATS_PASSWORD } | ||
{ user: faststream, password: $FASTSTREAM_NATS_PASSWORD } | ||
{ user: wasp, password: $WASP_NATS_PASSWORD } | ||
] | ||
} | ||
APP { | ||
jetstream: enabled | ||
} | ||
SYS {} | ||
} | ||
|
||
authorization { | ||
auth_callout { | ||
issuer: $NATS_PUB_NKEY | ||
auth_users: [ auth, faststream, wasp ] | ||
account: AUTH | ||
} | ||
} | ||
|
||
system_account: SYS |
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,63 @@ | ||
{ | ||
"name": "python-3.10", | ||
// "image": "mcr.microsoft.com/devcontainers/python:3.10", | ||
"dockerComposeFile": [ | ||
"./docker-compose.yml" | ||
], | ||
"service": "python-3.10", | ||
"forwardPorts": [ | ||
"${containerEnv:CONTAINER_PREFIX}-nats-py310-fastagencyapi:9222" | ||
], | ||
"shutdownAction": "stopCompose", | ||
"workspaceFolder": "/workspaces/fastagencyapi", | ||
// "runArgs": [], | ||
"remoteEnv": {}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"username": "vscode", | ||
"userUid": "1000", | ||
"userGid": "1000" | ||
// "upgradePackages": "true" | ||
}, | ||
// "ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": true | ||
}, | ||
"ghcr.io/devcontainers/features/git-lfs:1": {}, | ||
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {} | ||
}, | ||
"updateContentCommand": "bash .devcontainer/setup.sh", | ||
"postCreateCommand": [], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.linting.enabled": true, | ||
"python.testing.pytestEnabled": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.vscode-pylance" | ||
}, | ||
"editor.rulers": [ | ||
80 | ||
] | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.jupyter", | ||
"ms-toolsai.vscode-jupyter-cell-tags", | ||
"ms-toolsai.jupyter-keymap", | ||
"ms-toolsai.jupyter-renderers", | ||
"ms-toolsai.vscode-jupyter-slideshow", | ||
"ms-python.vscode-pylance" | ||
] | ||
} | ||
} | ||
} |
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,45 @@ | ||
version: '3' | ||
|
||
services: | ||
python-3.10: # nosemgrep | ||
image: mcr.microsoft.com/devcontainers/python:3.10 | ||
container_name: $USER-python-3.10-fastagencyapi | ||
volumes: | ||
- ../../:/workspaces/fastagencyapi:cached | ||
command: sleep infinity | ||
environment: | ||
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagencyapi:5432/fastagencyapi | ||
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagencyapi:5432/pyfastagencyapi | ||
- NATS_URL=nats://${USER}-nats-py310-fastagencyapi:4222 | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
nats-fastagencyapi: # nosemgrep | ||
image: nats:latest | ||
container_name: $USER-nats-py310-fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}4222:4222" | ||
# - "${PORT_PREFIX}9222:9222" | ||
volumes: | ||
- ../nats_server.conf:/etc/nats/server.conf | ||
command: [ "--config", "/etc/nats/server.conf" ] | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
postgres-fastagencyapi: # nosemgrep | ||
image: postgres:latest | ||
container_name: $USER-postgres-py310-fastagencyapi | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: password # pragma: allowlist secret | ||
POSTGRES_DB: fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}5432:5432" | ||
networks: | ||
- fastagencyapi-network | ||
|
||
networks: | ||
fastagencyapi-network: | ||
name: "${USER}-fastagencyapi-network" |
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,62 @@ | ||
{ | ||
"name": "python-3.11", | ||
"dockerComposeFile": [ | ||
"./docker-compose.yml" | ||
], | ||
"service": "python-3.11", | ||
"forwardPorts": [ | ||
"${containerEnv:CONTAINER_PREFIX}-nats-py311-fastagencyapi:9222" | ||
], | ||
"shutdownAction": "stopCompose", | ||
"workspaceFolder": "/workspaces/fastagencyapi", | ||
// "runArgs": [], | ||
"remoteEnv": {}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"username": "vscode", | ||
"userUid": "1000", | ||
"userGid": "1000" | ||
// "upgradePackages": "true" | ||
}, | ||
// "ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": true | ||
}, | ||
"ghcr.io/devcontainers/features/git-lfs:1": {}, | ||
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {} | ||
}, | ||
"updateContentCommand": "bash .devcontainer/setup.sh", | ||
"postCreateCommand": [], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.linting.enabled": true, | ||
"python.testing.pytestEnabled": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.vscode-pylance" | ||
}, | ||
"editor.rulers": [ | ||
80 | ||
] | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.jupyter", | ||
"ms-toolsai.vscode-jupyter-cell-tags", | ||
"ms-toolsai.jupyter-keymap", | ||
"ms-toolsai.jupyter-renderers", | ||
"ms-toolsai.vscode-jupyter-slideshow", | ||
"ms-python.vscode-pylance" | ||
] | ||
} | ||
} | ||
} |
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,45 @@ | ||
version: '3' | ||
|
||
services: | ||
python-3.11: # nosemgrep | ||
image: mcr.microsoft.com/devcontainers/python:3.11 | ||
container_name: $USER-python-3.11-fastagencyapi | ||
volumes: | ||
- ../../:/workspaces/fastagencyapi:cached | ||
command: sleep infinity | ||
environment: | ||
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagencyapi:5432/fastagencyapi | ||
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagencyapi:5432/pyfastagencyapi | ||
- NATS_URL=nats://${USER}-nats-py311-fastagencyapi:4222 | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
nats-fastagencyapi: # nosemgrep | ||
image: nats:latest | ||
container_name: $USER-nats-py311-fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}4222:4222" | ||
# - "${PORT_PREFIX}9222:9222" | ||
volumes: | ||
- ../nats_server.conf:/etc/nats/server.conf | ||
command: [ "--config", "/etc/nats/server.conf" ] | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
postgres-fastagencyapi: # nosemgrep | ||
image: postgres:latest | ||
container_name: $USER-postgres-py311-fastagencyapi | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: password # pragma: allowlist secret | ||
POSTGRES_DB: fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}5432:5432" | ||
networks: | ||
- fastagencyapi-network | ||
|
||
networks: | ||
fastagencyapi-network: | ||
name: "${USER}-fastagencyapi-network" |
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,63 @@ | ||
{ | ||
"name": "python-3.12", | ||
// "image": "mcr.microsoft.com/devcontainers/python:3.12", | ||
"dockerComposeFile": [ | ||
"./docker-compose.yml" | ||
], | ||
"service": "python-3.12", | ||
"forwardPorts": [ | ||
"${containerEnv:CONTAINER_PREFIX}-nats-py312-fastagencyapi:9222" | ||
], | ||
"shutdownAction": "stopCompose", | ||
"workspaceFolder": "/workspaces/fastagencyapi", | ||
// "runArgs": [], | ||
"remoteEnv": {}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"username": "vscode", | ||
"userUid": "1000", | ||
"userGid": "1000" | ||
// "upgradePackages": "true" | ||
}, | ||
// "ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": true | ||
}, | ||
"ghcr.io/devcontainers/features/git-lfs:1": {}, | ||
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {} | ||
}, | ||
"updateContentCommand": "bash .devcontainer/setup.sh", | ||
"postCreateCommand": [], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.linting.enabled": true, | ||
"python.testing.pytestEnabled": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.vscode-pylance" | ||
}, | ||
"editor.rulers": [ | ||
80 | ||
] | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.jupyter", | ||
"ms-toolsai.vscode-jupyter-cell-tags", | ||
"ms-toolsai.jupyter-keymap", | ||
"ms-toolsai.jupyter-renderers", | ||
"ms-toolsai.vscode-jupyter-slideshow", | ||
"ms-python.vscode-pylance" | ||
] | ||
} | ||
} | ||
} |
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,45 @@ | ||
version: '3' | ||
|
||
services: | ||
python-3.12: # nosemgrep | ||
image: mcr.microsoft.com/devcontainers/python:3.12 | ||
container_name: $USER-python-3.12-fastagencyapi | ||
volumes: | ||
- ../../:/workspaces/fastagencyapi:cached | ||
command: sleep infinity | ||
environment: | ||
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagencyapi:5432/fastagencyapi | ||
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagencyapi:5432/pyfastagencyapi | ||
- NATS_URL=nats://${USER}-nats-py312-fastagencyapi:4222 | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
nats-fastagencyapi: # nosemgrep | ||
image: nats:latest | ||
container_name: $USER-nats-py312-fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}4222:4222" | ||
# - "${PORT_PREFIX}9222:9222" | ||
volumes: | ||
- ../nats_server.conf:/etc/nats/server.conf | ||
command: [ "--config", "/etc/nats/server.conf" ] | ||
env_file: | ||
- ../devcontainer.env | ||
networks: | ||
- fastagencyapi-network | ||
postgres-fastagencyapi: # nosemgrep | ||
image: postgres:latest | ||
container_name: $USER-postgres-py312-fastagencyapi | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: password # pragma: allowlist secret | ||
POSTGRES_DB: fastagencyapi | ||
# ports: | ||
# - "${PORT_PREFIX}5432:5432" | ||
networks: | ||
- fastagencyapi-network | ||
|
||
networks: | ||
fastagencyapi-network: | ||
name: "${USER}-fastagencyapi-network" |
Oops, something went wrong.