forked from bluewave-labs/verifywise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 976 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
version: '3.9'
services:
postgresdb:
image: postgres
env_file:
- ./.env
ports:
- $LOCAL_DB_PORT:$DB_PORT
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=$DB_USER
- POSTGRES_PASSWORD=$DB_PASSWORD
- POSTGRES_DB=$DB_NAME
backend:
depends_on:
- postgresdb
image: pharsh4585/verifywise-backend:latest
env_file:
- ./.env
ports:
- $BACKEND_PORT:$BACKEND_PORT
environment:
- PORT=$BACKEND_PORT
- DB_HOST=postgresdb
- DB_USER=$DB_USER
- DB_PORT=$DB_PORT
- DB_PASSWORD=$DB_PASSWORD
- DB_NAME=$DB_NAME
- MOCK_DATA_ON=$MOCK_DATA_ON
- JWT_SECRET=$JWT_SECRET
frontend:
depends_on:
- backend
image: pharsh4585/verifywise-frontend:latest
env_file:
- ./.env
ports:
- $FRONTEND_PORT:80
# environment:
# # backend URL
# - VITE_API_URL=http://localhost:${PORT}
volumes:
db: