-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.35 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'
services:
backend:
image: backend:latest
build:
dockerfile: ./Dockerfile
volumes:
- ./.env:/project/app/.env
- ./src/:/project/app/src
- ./tsconfig.build.json:/project/app/tsconfig.build.json
- ./tsconfig.json:/project/app/tsconfig.json
- ./.eslintrc.js:/project/app/.eslintrc.js
- ./nest-cli.json:/project/app/nest-cli.json
- ./images:/project/app/images
- ./resumes:/project/app/resumes
- ./client/dist/:/project/app/client/dist
depends_on:
- postgres-db
ports:
- "3001:3001"
frontend:
image: frontend:latest
build:
dockerfile: ./client/Dockerfile
volumes:
- ./client/index.html:/project/app/index.html
- ./client/tailwind.config.js:/project/app/tailwind.config.js
- ./client/vite.config.js:/project/app/vite.config.js
- ./client/postcss.config.js:/project/app/postcss.config.js
- ./client/src/:/project/app/src
- ./client/public/:/project/app/public
depends_on:
- backend
ports:
- "3000:3000"
postgres-db:
image: postgres:14
env_file:
- .env
volumes:
- postgres:/data/postgres
ports:
- "6543:5432"
restart: on-failure
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
restart: on-failure
volumes:
postgres: