-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.06 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
55
version: '3'
volumes:
pgdatasource:
services:
db:
image: postgres
restart: always
environment:
- DATABASE_HOST=127.0.0.1
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=smartsheets
ports:
- '5432:5432'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- pgdatasource:/var/lib/postgresql/data
server:
build: server/
depends_on:
db:
condition: service_healthy
ports:
- '8080:8080'
environment:
- NODE_ENV=development
- DATABASE_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=smartsheets
volumes:
- type: bind
source: ./server
target: /app
command: npm run start:dev
client:
build: client/
depends_on:
- 'server'
ports:
- '3000:3000'
volumes:
- type: bind
source: ./client/src
target: /app/src