-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.55 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
55
56
57
58
59
version: "3.1"
services:
db:
build:
context: db
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: itender
ports:
- 25432:5432
api:
build:
context: api
ports:
- 8080:8080
- 8081:8081
depends_on:
- db
environment:
- spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
- spring.jpa.hibernate.ddl-auto=update
- spring.datasource.url=jdbc:postgresql://db:5432/itender
- spring.datasource.username=postgres
- spring.datasource.password=1234
- spring.datasource.driver.class=com.postgres.jdbc.Driver
- spring.jpa.properties.hibernate.format_sql=true
- spring.sql.init.mode=always
- spring.datasource.initialize=true
- springdoc.show.actuator=true
- JWT_SECRET=rWBYr(P3Ye&7Z!m7
- springdoc.api-docs.path=/itender-openapi
- server.servlet.context-path=/api
- FRONT_URL_QR=http://localhost:4200/home/
- spring.servlet.multipart.max-file-size=10MB
- spring.servlet.multipart.max-request-size=10MB
- spring.sql.init.data-locations=classpath:init.sql
volumes:
- /var/run/docker.sock:/var/run/docker.sock
angular-service:
container_name: iTenderAngular
build:
context: ./front
dockerfile: ./Dockerfile
ports:
- "4200:80"
environment:
- apiUrl=http://192.168.1.9:8080/api
volumes:
postgresql-data: