forked from oldboyxx/jira_clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 877 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
45
version: "3.7"
services:
frontend:
image: node:16-alpine
command: ["yarn", "start"]
ports:
- "5000:5000"
- "8080:8080"
# For webpack dev server
- "3035:3035"
working_dir: /app
volumes:
- ./client:/app
backend:
image: node:16-alpine
depends_on:
- postgres
command: ["yarn", "start"]
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- DB_HOST=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_DATABASE=jira_development
- JWT_SECRET=thisisnotasecret
working_dir: /app
volumes:
- ./api:/app
postgres:
image: postgres:alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
postgres_data: {}