-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.frontend1-b4f.yml
More file actions
54 lines (50 loc) · 1.13 KB
/
Copy pathdocker-compose.frontend1-b4f.yml
File metadata and controls
54 lines (50 loc) · 1.13 KB
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
# Docker Compose - Frontend1 + B4F + Database
# Perfect for React with Material-UI development
volumes:
test_data:
services:
db:
container_name: db-test
image: postgres
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: devPassword
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- test_data:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dev -d postgres"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
frontend1:
container_name: frontend1-test
image: frontend1-test
build:
context: ./frontend1
target: development
volumes:
- ./frontend1/src:/frontend1/src
- ./frontend1/public:/frontend1/public
ports:
- "3000:3000"
depends_on:
- b4f
b4f:
container_name: b4f-test
image: b4f-test
build:
context: ./b4f
target: development
volumes:
- ./b4f:/b4f
depends_on:
- db
ports:
- "3001:3001"
environment:
- NODE_ENV=development
- DATABASE_URL=postgresql://dev:devPassword@db:5432/postgres?schema=public