forked from nexmoe/VidBee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1023 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1023 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
35
36
37
38
39
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
VIDBEE_API_HOST: 0.0.0.0
VIDBEE_API_PORT: ${VIDBEE_API_PORT:-3100}
VIDBEE_DOWNLOAD_DIR: /data/downloads
VIDBEE_HISTORY_STORE_PATH: /data/vidbee/vidbee.db
ports:
- "${VIDBEE_API_PORT:-3100}:${VIDBEE_API_PORT:-3100}"
volumes:
- vidbee-downloads:/data/downloads
- vidbee-data:/data/vidbee
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${VIDBEE_API_PORT:-3100}/health > /dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
web:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
VITE_API_URL: ${VITE_API_URL:-http://localhost:${VIDBEE_API_PORT:-3100}}
depends_on:
api:
condition: service_healthy
ports:
- "${VIDBEE_WEB_PORT:-3000}:3000"
restart: unless-stopped
volumes:
vidbee-downloads:
vidbee-data: