forked from RunestoneInteractive/rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.compose.yml
59 lines (56 loc) · 2.01 KB
/
author.compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.8"
services:
author:
build:
context: ./projects/author_server
#image: registry.digitalocean.com/runestone-registry/rs-author
image: ghcr.io/runestoneinteractive/rs-author
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 8114:8114
command: uvicorn rsptx.author_server_api.main:app --host 0.0.0.0 --port 8114
volumes:
- ${BOOK_PATH}:/books
- $HOME/downloads:/usr/src/app/downloads
environment:
- SERVER_CONFIG=${SERVER_CONFIG}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- DEV_DBURL=${DC_DEV_DBURL:-$DEV_DBURL}
- DBURL=${DC_DBURL:-$DBURL}
- RUNESTONE_PATH=/usr/src/app
- JWT_SECRET=${JWT_SECRET}
depends_on:
- redis
worker:
build:
context: ./projects/author_server
#image: registry.digitalocean.com/runestone-registry/rs-worker
image: ghcr.io/runestoneinteractive/rs-worker
extra_hosts:
- host.docker.internal:host-gateway
command: celery -A rsptx.author_server_api.worker.celery worker
volumes:
- ${BOOK_PATH}:/books
- ${SSH_AUTH_SOCK:-/tmp}:/ssh-agent # forward host ssh agent
- $HOME/downloads:/usr/src/app/downloads
environment:
- SERVER_CONFIG=${SERVER_CONFIG}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- RUNESTONE_PATH=/usr/src/app
- DEV_DBURL=${DC_DEV_DBURL:-$DEV_DBURL}
- DBURL=${DC_DBURL:-$DBURL}
- WEB2PY_CONFIG=${SERVER_CONFIG}
- JWT_SECRET=${JWT_SECRET}
- SSH_AUTH_SOCK=/ssh-agent
- NUM_SERVERS=${NUM_SERVERS:-1}
depends_on:
- author
- redis
nginx:
depends_on:
- author
links:
- author