-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (55 loc) · 1.16 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
58
59
60
61
version: "3.7"
volumes:
pg_data:
services:
frontend:
build: ./client
ports:
- 3000:3000
container_name: prkl-frontend
volumes:
- ./client:/usr/src/app/frontend
app:
build:
context: ./
dockerfile: dev.Dockerfile
args:
NODE_ENV: development
REACT_APP_CUSTOM_NODE_ENV: development
volumes:
- ./server:/usr/src/app/server
ports:
- "3001:3001"
container_name: prkl-dev
environment:
- "NODE_ENV=development"
- "REACT_APP_CUSTOM_NODE_ENV=development"
- "DATABASE_URL=postgres://postgres:postgres@db:5432/postgres"
depends_on:
- frontend
algorithm:
build:
context: ./algorithm
dockerfile: dev.Dockerfile
args:
NODE_ENV: development
ports:
- 3004:3004
container_name: prkl-algorithm
volumes:
- ./algorithm:/usr/src/app/algorithm
adminer:
image: adminer
restart: always
ports:
- 3003:8080
db:
image: postgres:12
container_name: prkl-db
environment:
- PGDATA=/data
- POSTGRES_PASSWORD=postgres
volumes:
- pg_data:/data
ports:
- 5432:5432