forked from nortonprojects/web-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 893 Bytes
/
docker-compose.yml
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
version: "3.7"
services:
db:
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=wisely_test
ports:
- "5432:5432"
api:
build:
context: .
dockerfile: ./api/Dockerfile
environment:
- DATABASE_CONNECTION_STRING=postgres://postgres:password@db/wisely_test
- NODE_ENV=development
- APP_ENV=development
- PORT=8080
- LOG=debug
stdin_open: true
tty: true
depends_on:
- db
ports:
- "9090:8080"
volumes:
- ./api:/app
- /app/node_modules
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
stdin_open: true
tty: true
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- api
ports:
- "8080:8080"
- "8081:8081"