-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.37 KB
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
services:
server:
build:
context: .
dockerfile: docker/server.Dockerfile
container_name: shiny-ai-server
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- ./packages/server/src:/app/packages/server/src:ro
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 3000"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- shiny-ai-network
shiny:
build:
context: .
dockerfile: docker/shiny.Dockerfile
container_name: shiny-ai-dashboard
ports:
- "3838:3838"
environment:
# Use localhost:3000 because this URL is used by browser-side JavaScript
- SHINY_AI_API_URL=http://localhost:3000
- R_SHINY_PACKAGE_PATH=/packages/r-shiny
# Use temp dir for sass cache (app dir is read-only)
- SASS_CACHE_PATH=/tmp/sass-cache
volumes:
- ./examples/demo-dashboard:/app:ro
- ./packages/r-shiny:/packages/r-shiny:ro
depends_on:
server:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3838"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- shiny-ai-network
networks:
shiny-ai-network:
driver: bridge