-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 906 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
49
50
51
version: "3.8"
services:
api:
container_name: "api"
build: ./api
ports:
- "5000:5000"
volumes:
- ./api:/usr/src/app
- /usr/src/app/node_modules
environment:
CHOKIDAR_USEPOLLING: "true"
env_file:
- .env
client:
container_name: "client"
build: ./client
ports:
- "3000:3000"
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
environment:
CHOKIDAR_USEPOLLING: "true"
env_file:
- .env
db:
container_name: "db"
image: "postgres:13"
ports:
- "5432:5432"
environment:
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
volumes:
- db-data:/var/lib/postgresql/data/
data:
container_name: "data"
depends_on:
- db
build: ./data
env_file:
- .env
volumes:
db-data: