-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (50 loc) · 1020 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
frontend:
container_name: frontend
build:
context: ./src/frontend/
# image: vuejs/ci:latest
depends_on:
- backend
- database
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./src/frontend/src/:/app/src/
# env_file: .env
backend:
build: src/backend
container_name: nestjs
depends_on:
- database
restart: unless-stopped
ports:
- "3000:3000"
networks:
- back-tier
volumes:
- ./src/backend/src:/home/data/src
# env_file: .env
# image: nestjs/cli:latest
# stdin_open: true
# tty: true
database:
build: src/database
container_name: postgres
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432-5433:5432-5433"
networks:
- back-tier
env_file: ./src/backend/.env
# env_file: .env
# depends_on:
volumes:
db-data:
name: "db-data"
networks:
back-tier: {}
# expose Ports