Revize 0319d5a2
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/docker-compose.yml | ||
---|---|---|
12 | 12 |
- 5432 |
13 | 13 |
ports: |
14 | 14 |
- "5432:5432" # expose port 5432 (PostgreSQL) out of the docker container to the local machine |
15 |
volumes: |
|
16 |
- db-data:/var/lib/postgresql/data |
|
15 | 17 |
|
16 | 18 |
|
17 | 19 |
app: # Spring boot application |
18 | 20 |
build: . |
19 | 21 |
container_name: app-backend # name of the container |
20 | 22 |
ports: |
21 |
- "8080:8080" # expose port 8080 out of the docker container do the local machine
|
|
23 |
- "8000:8000" # expose port 8080 out of the docker container do the local machine
|
|
22 | 24 |
depends_on: |
23 | 25 |
- db |
24 | 26 |
environment: |
25 | 27 |
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/test # overwrites application.properties datasource url to connect to the database |
26 | 28 |
|
29 |
frontend: |
|
30 |
# Since our Dockerfile for web-server is located in react-app foler, our build context is ./react-app |
|
31 |
build: ../frontend |
|
32 |
container_name: frontend |
|
33 |
image: schwobik/frontend-app:1.0 |
|
34 |
ports: |
|
35 |
- "8080:8080" |
|
36 |
|
|
27 | 37 |
volumes: |
28 | 38 |
db-data: |
Také k dispozici: Unified diff
Configuration files for kubernetes
re #9333