-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
57 lines (57 loc) · 1.39 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
postgres:
image: postgres:alpine
ports:
- '127.0.0.1:5432:5432'
user: postgres
env_file:
- packages/backend/.env
volumes:
- postgres-data:/var/lib/postgresql/data
backend:
container_name: recruitment-system-backend
build:
context: .
target: backend
env_file:
- packages/backend/.env
ports:
- '5000:5000'
links:
- postgres
volumes:
- ./packages/backend/data/resumes:/usr/src/recruitment/packages/backend/data/resumes
- ./packages/backend/logs:/usr/src/recruitment/packages/backend/logs
- ./packages/backend/backup:/usr/src/recruitment/packages/backend/backup
- yarn-cache:/tmp/yarn-cache
dashboard:
build:
context: .
target: dashboard
env_file:
- packages/dashboard/.env
volumes:
- dashboard-build:/usr/src/recruitment/packages/dashboard/build
- yarn-cache:/tmp/yarn-cache
candidate-dashboard:
build:
context: .
target: candidate-dashboard
env_file:
- packages/candidate-dashboard/.env
volumes:
- yarn-cache:/tmp/yarn-cache
nginx:
image: nginx:alpine
ports:
- '80:80'
volumes:
- dashboard-build:/usr/share/nginx/dashboard
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/nginx.conf
volumes:
postgres-data:
dashboard-build:
yarn-cache: