-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
34 lines (32 loc) · 934 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
34 lines (32 loc) · 934 Bytes
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
services:
server:
build:
context: .
dockerfile: splendor-server/Dockerfile
target: builder
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./splendor-core/src:/build/splendor-core/src
- ./splendor-ai/src:/build/splendor-ai/src
- ./splendor-server/src:/build/splendor-server/src
- ./splendor-server/app:/build/splendor-server/app
- splendor-data:/data
environment:
- SPLENDOR_DB_PATH=/data/splendor.db
- SPLENDOR_PORT=8080
command: >
bash -c "cabal build splendor-server:exe:splendor-server --file-watch &
sleep 10 && cabal run splendor-server"
client:
image: node:20-alpine
working_dir: /app
ports:
- "127.0.0.1:5173:5173"
volumes:
- ./client:/app
- client-modules:/app/node_modules
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
volumes:
splendor-data:
client-modules: