-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 949 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 949 Bytes
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
version: "3"
services:
db:
image: postgres:14
container_name: db
restart: on-failure
environment:
POSTGRES_DB: rasporedar
POSTGRES_USER: rasporedar
POSTGRES_PASSWORD: rasporedar
ports:
- 3002:5432
backend:
build: ./backend
container_name: be
volumes:
- ./backend:/app
- /app/node_modules
environment:
POSTGRES_HOST: db
POSTGRES_DB: rasporedar
POSTGRES_USER: rasporedar
POSTGRES_PASSWORD: rasporedar
JWT_SECRET_KEY: "${JWT_SECRET_KEY:?err}"
SALT_ROUNDS: "${SALT_ROUNDS:?err}"
healthcheck:
test: curl -f localhost:3001/healthcheck/ping
interval: 3s
ports:
- 3001:3001
depends_on:
- db
frontend:
build: ./frontend
container_name: fe
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- 3000:3000
depends_on:
backend:
condition: service_healthy