-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.07 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
# docker-compose.yml
version: '3.8'
services:
backend:
image: medwar-backend
container_name: backend
build:
context: backend
dockerfile: Dockerfile
args:
NODE_ENV: production
PORT: 5000
ports:
- 5000:5000
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
depends_on:
- db
frontend:
image: medwar-frontend
container_name: frontend
build:
context: frontend
dockerfile: Dockerfile
args:
NODE_ENV: production
environment:
- API_URL=${API_URL}
- GOOGLEMAPS_API_KEY=${GOOGLEMAPS_API_KEY}
ports:
- 8080:8080
depends_on:
- backend
db:
container_name: db
image: postgres:14-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./data/export:/data
expose:
- 5432
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
postgres_data: