-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.04 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
version: '3.8'
services:
postgres:
image: postgres:14-alpine
environment:
POSTGRES_USER: notepadcalculator
POSTGRES_PASSWORD: localdevpassword
POSTGRES_DB: notepadcalculator
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U notepadcalculator"]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
ports:
- "4002:4002"
environment:
NODE_ENV: development
NODE_PORT: 4002
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: notepadcalculator
DB_USER: notepadcalculator
DB_PASSWORD: localdevpassword
depends_on:
postgres:
condition: service_healthy
volumes:
- ./server:/app/server
- ./web:/app/web
- ./shared:/app/shared
- ./docker-dev.sh:/app/docker-dev.sh
- /app/server/node_modules
- /app/web/node_modules
command: sh -c "cd /app && sh docker-dev.sh"
stdin_open: true
tty: true
volumes:
postgres_data: