9fa6b661eb
* chore: update dev container * feat(client): add server version request * docs(client): enhanced server version docstring * test(client): sever version test * test(base): type check for union type * refactor(base): move _ attrs to `RegisteringBase` * refactor: some light cleanup * chore(container): add pylint line length * feat(metrics): add "Invite Action" * feat(client): pass server version to resources * feat(models): pending stream collaborator model * fix(client): do not parse if request res is null * feat(exceptions): add unsupported exception to distinguish for new invites as of server 2.6.4 * feat(client): add stream invite queries/mutations * test(client): test stream invites * feat(client): incorporate last invites changes
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
version: "3.3" # optional since v1.27.0
|
|
services:
|
|
postgres:
|
|
image: cimg/postgres:14.2
|
|
environment:
|
|
POSTGRES_DB: speckle2_test
|
|
POSTGRES_PASSWORD: speckle
|
|
POSTGRES_USER: speckle
|
|
network_mode: host
|
|
redis:
|
|
image: cimg/redis:6.2
|
|
network_mode: host
|
|
speckle-server:
|
|
image: speckle/speckle-server:latest
|
|
command: ["bash", "-c", "/wait && node bin/www"]
|
|
environment:
|
|
POSTGRES_URL: "localhost"
|
|
POSTGRES_USER: "speckle"
|
|
POSTGRES_PASSWORD: "speckle"
|
|
POSTGRES_DB: "speckle2_test"
|
|
REDIS_URL: "redis://localhost"
|
|
SESSION_SECRET: "keyboard cat"
|
|
STRATEGY_LOCAL: "true"
|
|
CANONICAL_URL: "http://localhost:3000"
|
|
WAIT_HOSTS: localhost:5432, localhost:6379
|
|
DISABLE_FILE_UPLOADS: "true"
|
|
network_mode: host
|
|
|
|
specklepy:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
args:
|
|
VARIANT: 3.9
|
|
NODE_VERSION: lts/*
|
|
volumes:
|
|
# Mounts the project folder to '/workspace'. While this file is in .devcontainer,
|
|
# mounts are relative to the first file in the list, which is a level up.
|
|
- ..:/workspaces/specklepy:cached
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: /bin/sh -c "while sleep 1000; do :; done"
|
|
network_mode: host
|
|
# networks:
|
|
# default: |