Merge pull request #1758 from nhazdun/master

Feature: Add new container Athena pdf (Weaver)
This commit is contained in:
Shao Yu-Lung (Allen) 2021-03-24 22:26:09 +08:00 committed by GitHub
commit 77a805c066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -1388,6 +1388,7 @@ services:
volumes:
- ${DATA_PATH_HOST}/gitlab/runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock:rw
restart: always
### JupyterHub #########################################
jupyterhub:
@ -1517,6 +1518,18 @@ services:
networks:
- backend
### Weaver (Athena PDF) #################################################
weaver:
image: arachnysdocker/athenapdf-service
ports:
- "8080:8080"
env_file:
- ./weaver/conf/sample.env
networks:
- backend
depends_on:
- workspace
### IDE-THEIA ################################################
ide-theia:
build:

19
weaver/conf/sample.env Normal file
View File

@ -0,0 +1,19 @@
GIN_MODE=debug
# Weaver
WEAVER_AUTH_KEY=arachnys-weaver
WEAVER_ATHENA_CMD=athenapdf -S
WEAVER_MAX_WORKERS=10
WEAVER_MAX_CONVERSION_QUEUE=50
WEAVER_WORKER_TIMEOUT=90
WEAVER_CONVERSION_FALLBACK=false
# CloudConvert
# API key can be found: https://cloudconvert.com/user/profile
# CLOUDCONVERT_API=https://api.cloudconvert.com
# CLOUDCONVERT_KEY=
# Monitoring
# STATSD_ADDRESS=
# STATSD_PREFIX=
# SENTRY_DSN=