2023-11-29 12:16:58 +03:00
|
|
|
version: '2.4'
|
2021-03-31 13:43:22 +03:00
|
|
|
services:
|
2023-11-29 12:16:58 +03:00
|
|
|
speckle-ingress:
|
2021-03-31 13:43:22 +03:00
|
|
|
build:
|
|
|
|
context: .
|
2023-11-29 12:16:58 +03:00
|
|
|
dockerfile: utils/docker-compose-ingress/Dockerfile
|
|
|
|
platform: linux/amd64
|
|
|
|
image: speckle/speckle-docker-compose-ingress:local
|
2021-03-31 13:43:22 +03:00
|
|
|
restart: always
|
2021-04-07 23:32:25 +03:00
|
|
|
ports:
|
2023-01-25 22:06:48 +03:00
|
|
|
- '0.0.0.0:80:8080'
|
2022-07-29 13:00:29 +03:00
|
|
|
environment:
|
2023-11-29 12:16:58 +03:00
|
|
|
FILE_SIZE_LIMIT_MB: '100'
|
|
|
|
NGINX_ENVSUBST_OUTPUT_DIR: '/etc/nginx'
|
|
|
|
|
|
|
|
speckle-frontend-2:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: packages/frontend-2/Dockerfile
|
|
|
|
platform: linux/amd64
|
|
|
|
image: speckle/speckle-frontend-2:local
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
NUXT_PUBLIC_SERVER_NAME: 'local'
|
|
|
|
NUXT_PUBLIC_API_ORIGIN: 'http://127.0.0.1'
|
2024-02-06 13:38:22 +03:00
|
|
|
NUXT_PUBLIC_BASE_URL: 'http://127.0.0.1'
|
2023-11-29 12:16:58 +03:00
|
|
|
NUXT_PUBLIC_BACKEND_API_ORIGIN: 'http://speckle-server:3000'
|
2024-01-22 12:08:53 +03:00
|
|
|
NUXT_REDIS_URL: 'redis://redis'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
|
|
|
speckle-server:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: packages/server/Dockerfile
|
2023-11-29 12:16:58 +03:00
|
|
|
platform: linux/amd64
|
2022-01-12 16:18:32 +03:00
|
|
|
image: speckle/speckle-server:local
|
2021-03-31 13:43:22 +03:00
|
|
|
restart: always
|
2023-06-29 16:55:40 +03:00
|
|
|
healthcheck:
|
|
|
|
test:
|
|
|
|
- CMD
|
|
|
|
- node
|
|
|
|
- -e
|
2023-07-07 18:22:15 +03:00
|
|
|
- "try { require('node:http').request({headers: {'Content-Type': 'application/json'}, port:3000, hostname:'127.0.0.1', path:'/graphql?query={serverInfo{version}}', method: 'GET', timeout: 2000 }, (res) => { body = ''; res.on('data', (chunk) => {body += chunk;}); res.on('end', () => {process.exit(res.statusCode != 200 || body.toLowerCase().includes('error'));}); }).end(); } catch { process.exit(1); }"
|
2023-06-29 16:55:40 +03:00
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2023-07-24 13:17:53 +03:00
|
|
|
start_period: 90s
|
2021-03-31 13:43:22 +03:00
|
|
|
environment:
|
2021-04-07 23:32:25 +03:00
|
|
|
# TODO: Change this to the URL of the speckle server, as accessed from the network
|
2023-08-03 11:28:57 +03:00
|
|
|
CANONICAL_URL: 'http://127.0.0.1'
|
2021-04-07 23:32:25 +03:00
|
|
|
|
|
|
|
# TODO: Change this to a unique secret for this server
|
2022-03-29 16:53:49 +03:00
|
|
|
SESSION_SECRET: 'TODO:Replace'
|
2021-04-07 23:32:25 +03:00
|
|
|
|
2022-03-29 16:53:49 +03:00
|
|
|
STRATEGY_LOCAL: 'true'
|
2022-12-06 14:51:18 +03:00
|
|
|
LOG_LEVEL: 'info'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
2022-03-29 16:53:49 +03:00
|
|
|
POSTGRES_URL: 'postgres'
|
|
|
|
POSTGRES_USER: 'speckle'
|
|
|
|
POSTGRES_PASSWORD: 'speckle'
|
|
|
|
POSTGRES_DB: 'speckle'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
2022-03-29 16:53:49 +03:00
|
|
|
REDIS_URL: 'redis://redis'
|
2021-05-14 14:15:07 +03:00
|
|
|
|
2022-03-29 16:53:49 +03:00
|
|
|
S3_ENDPOINT: 'http://minio:9000'
|
|
|
|
S3_ACCESS_KEY: 'minioadmin'
|
|
|
|
S3_SECRET_KEY: 'minioadmin'
|
|
|
|
S3_BUCKET: 'speckle-server'
|
|
|
|
S3_CREATE_BUCKET: 'true'
|
2022-08-15 15:24:30 +03:00
|
|
|
S3_REGION: '' # optional, defaults to 'us-east-1'
|
2022-07-29 13:00:29 +03:00
|
|
|
FILE_SIZE_LIMIT_MB: 100
|
2023-08-01 13:49:08 +03:00
|
|
|
EMAIL_FROM: 'no-reply@example.org'
|
2021-11-03 15:30:48 +03:00
|
|
|
|
2023-11-29 12:16:58 +03:00
|
|
|
USE_FRONTEND_2: true
|
|
|
|
FRONTEND_ORIGIN: 'http://127.0.0.1'
|
|
|
|
|
2021-05-14 14:15:07 +03:00
|
|
|
preview-service:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: packages/preview-service/Dockerfile
|
2023-11-29 12:16:58 +03:00
|
|
|
platform: linux/amd64
|
2022-01-12 16:18:32 +03:00
|
|
|
image: speckle/speckle-preview-service:local
|
2021-05-14 14:15:07 +03:00
|
|
|
restart: always
|
2022-03-29 16:53:49 +03:00
|
|
|
mem_limit: '3000m'
|
|
|
|
memswap_limit: '3000m'
|
2021-05-14 14:15:07 +03:00
|
|
|
environment:
|
2022-12-06 14:51:18 +03:00
|
|
|
LOG_LEVEL: 'info'
|
2022-03-29 16:53:49 +03:00
|
|
|
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
2021-07-12 11:46:18 +03:00
|
|
|
|
|
|
|
webhook-service:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: packages/webhook-service/Dockerfile
|
2023-11-29 12:16:58 +03:00
|
|
|
platform: linux/amd64
|
2022-01-12 16:18:32 +03:00
|
|
|
image: speckle/speckle-webhook-service:local
|
2021-07-12 11:46:18 +03:00
|
|
|
restart: always
|
|
|
|
environment:
|
2022-12-06 14:51:18 +03:00
|
|
|
LOG_LEVEL: 'info'
|
2022-03-29 16:53:49 +03:00
|
|
|
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
2022-01-12 16:18:32 +03:00
|
|
|
|
2021-11-03 15:30:48 +03:00
|
|
|
fileimport-service:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: packages/fileimport-service/Dockerfile
|
2023-11-29 12:16:58 +03:00
|
|
|
platform: linux/amd64
|
2022-01-12 16:18:32 +03:00
|
|
|
image: speckle/speckle-fileimport-service:local
|
2021-11-03 15:30:48 +03:00
|
|
|
restart: always
|
|
|
|
environment:
|
2022-12-06 14:51:18 +03:00
|
|
|
LOG_LEVEL: 'info'
|
2022-03-29 16:53:49 +03:00
|
|
|
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
|
|
|
SPECKLE_SERVER_URL: 'http://speckle-server:3000'
|
2023-06-23 18:21:09 +03:00
|
|
|
FILE_IMPORT_TIME_LIMIT_MIN: 10
|