-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
54 lines (50 loc) · 1.03 KB
/
compose.yml
File metadata and controls
54 lines (50 loc) · 1.03 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:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=sbc_queue
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- sbc-queue
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d sbc_queue"]
interval: 10s
timeout: 5s
retries: 5
app:
tty: true
init: true
build:
context: .
dockerfile: Dockerfile
args:
NODE_TAG: 22-bullseye-slim
volumes:
- ./:/workspace
- /workspace/node_modules
env_file:
- .env
environment:
- PORT=3000
- PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK=true
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
- CHOKIDAR_INTERVAL=150
depends_on:
- postgres
ports:
- "3000:3000"
- "5555:5555"
networks:
- sbc-queue
volumes:
postgres_data:
networks:
sbc-queue:
driver: bridge