-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 871 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 871 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
version: "3.9"
services:
chat-server:
image: node:22-alpine
container_name: chat-server
working_dir: /usr/src/app
env_file:
- .env
environment:
- NODE_ENV=development
- USE_SQLITE=1
ports:
- "${PORT:-8080}:${PORT:-8080}"
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
command: sh -c "apk add --no-cache sqlite && npm install && npm run db:init && npm run dev"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:${PORT:-8080}/"]
interval: 10s
timeout: 3s
retries: 5
restart: unless-stopped
turn-server:
image: coturn/coturn:latest
container_name: turn-server
volumes:
- ./turn-server/turnserver.conf:/etc/coturn/turnserver.conf
command: ["-c", "/etc/coturn/turnserver.conf"]
restart: unless-stopped
network_mode: host