-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (44 loc) · 975 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
version: "3.8"
services:
postgresdb:
image: postgres
restart: on-failure
env_file: ./.env
environment:
- POSTGRES_PASSWORD:$POSTGRES_PASSWORD
- DB_DEV_URL=$DB_DEV_URL
- DB_TEST_URL=$DB_TEST_URL
- PORT=$PORT
ports:
- "5433:5432"
volumes:
- db:/var/lib/postgres
express-server:
depends_on:
- postgresdb
build:
context: .
dockerfile: Dockerfile
restart: on-failure
env_file: ./.env
ports:
- $PORT:$PORT
environment:
- POSTGRES_PASSWORD:$POSTGRES_PASSWORD
- DB_DEV_URL=$DB_DEV_URL
- DB_TEST_URL=$DB_TEST_URL
- PORT=$PORT
stdin_open: true
tty: true
react-app:
depends_on:
- express-server
image: kwizera250/shoptrove-react-app
restart: on-failure
ports:
- "5173:5173"
environment:
- VITE_API_BASE_URL=${VITE_API_BASE_URL}
- VITE_API_APP_ROOT_URL=${VITE_API_APP_ROOT_URL}
volumes:
db: