-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (36 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
39 lines (36 loc) · 1.25 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
services:
flowback-frontend:
restart: unless-stopped
build: .
command: sh -c "npm run dev -- --host 0.0.0.0 --port $PORT"
ports:
- ${PORT:-3000}:${PORT:-3000}
env_file:
- .env
develop:
watch:
- path: .
target: /usr/src/app
action: sync
- path: ./docker-compose.yaml
target: /usr/src/app
action: rebuild
- path: ./Dockerfile
target: /usr/src/app
action: rebuild
# TODO:: Fix healthcheck
# healthcheck:
# test: ['CMD', 'curl', '-f', 'http://localhost:${PORT:-3000}/']
# interval: 4s
# timeout: 4s
# retries: 5
# start_period: 5s
volumes:
- ./src:/home/node/app/src
- ./static:/home/node/app/static
- ./vite.config.js:/home/node/app/vite.config.js
- ./tsconfig.json:/home/node/app/tsconfig.json
- ./svelte.config.js:/home/node/app/svelte.config.js
- ./:/app
- /app/node_modules
# TODO: Have a production setting (either in Dockerfile or in docker-compose, set in .env)