-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-docker-compose.yml
43 lines (41 loc) · 1021 Bytes
/
build-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
version: '3'
services:
mockpit-server:
container_name: mockpit-server
image: mockpit-server:1.0.0-RELEASE
build:
context: server/
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- "db"
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url" : "jdbc:postgresql://db:5432/mockpitdb",
"spring.datasource.username" : "mockpitadmin",
"spring.datasource.password" : "admin"
}'
mockpit-client:
image: mockpit-client:1.0.0-RELEASE
build:
context: client/mockpit-ui/
dockerfile: Dockerfile
environment:
backendUrl: http://localhost:8080
ports:
- "4200:80"
db:
container_name: db
image: postgres:15
ports:
- "5432:5432"
environment:
POSTGRES_DB: mockpitdb
POSTGRES_USER: mockpitadmin
POSTGRES_PASSWORD: admin
volumes:
- "mockpitpgdata:/var/lib/postgresql/data"
command: -p 5432
volumes:
mockpitpgdata: