-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.21 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
version: '3'
services:
postgres:
image: postgres
container_name: postgres_db
environment:
POSTGRES_USERNAME: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 5432:5432
volumes:
- database_data:/var/lib/postgresql/data
backend:
build: ./backend
container_name: finance-backend
image: jodonogh/finance-backend
ports:
- ${API_PORT}:5000
volumes:
- ./backend:/root/backend:cached
depends_on:
- postgres
ngrok:
image: wernight/ngrok
command: ['ngrok', 'http', 'backend:5000']
ports:
- ${NGROK_PORT}:4040
depends_on:
- backend
frontend:
stdin_open: true
container_name: finance-frontend
build: ./frontend
image: jodonogh/finance-frontend
# command: sh -c "npm install && npm start"
# working_dir: /root/frontend
ports:
- ${CLIENT_PORT}:3000
volumes:
- ./frontend:/root/frontend:cached
depends_on:
- backend
volumes:
database_data: