Compare commits
7 Commits
b9ad5fd922
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c8fecc52d6 | |||
| e97cbc6ad2 | |||
| 9fbca2677b | |||
| 6daa4c284d | |||
| 1c1eaa7ee7 | |||
| 96501f712c | |||
| ce52b5aff5 |
82
README.md
82
README.md
@ -1 +1,83 @@
|
||||
# Komponiranje
|
||||
|
||||
## How to run
|
||||
|
||||
Clone repository
|
||||
```
|
||||
git clone https://gitea.ekirin.com/Intis/prezentacija-komponiranje.git
|
||||
cd prezentacija-komponiranje
|
||||
```
|
||||
|
||||
Start docker compose with all containers:
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Wait until docker images are built and containers starts.
|
||||
|
||||
Browse to [Local frontend application on port 8080](http://localhost:8080)
|
||||
|
||||
List running containers:
|
||||
```
|
||||
docker compose ps
|
||||
```
|
||||
|
||||
Attach to docker compose output:
|
||||
```
|
||||
docker compose logs -f
|
||||
```
|
||||
|
||||
Stop running containers:
|
||||
```
|
||||
docker compose down
|
||||
```
|
||||
|
||||
### Run on host network
|
||||
|
||||
Start docker compose:
|
||||
```
|
||||
docker compose -f docker-compose-local.yml up -d
|
||||
```
|
||||
|
||||
Containers will listen to the following local ports:
|
||||
|
||||
| Service | Port |
|
||||
| ------------- | ----- |
|
||||
| FE / nginx | 80 |
|
||||
| Envoy proxy | 10000 |
|
||||
| Machines app | 4000 |
|
||||
| Products app | 4001 |
|
||||
| Database | 55432 |
|
||||
|
||||
Browse to [Local frontend application on port 80](http://localhost:80)
|
||||
|
||||
|
||||
Stop running containers:
|
||||
```
|
||||
docker compose -f docker-compose-local.yml down
|
||||
```
|
||||
|
||||
|
||||
## Media
|
||||
|
||||
### Life without Docker Compose
|
||||
|
||||

|
||||
|
||||
### Containers Architecture
|
||||
|
||||

|
||||
|
||||
### Networking - docker-compose.yml
|
||||
|
||||

|
||||
|
||||
### Networking - host network - docker-compose-local.yml
|
||||
|
||||

|
||||
|
||||
### DCCT - Docker Compose Cloud Tester
|
||||
|
||||
- [DCCT repository](https://gitlab.televendcloud.com/cloud/dc-cloud-tester)
|
||||
|
||||

|
||||
|
||||
@ -7,8 +7,6 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- backend-net
|
||||
ports:
|
||||
- 55432:5432
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
|
||||
BIN
media/containers-architecture.png
Normal file
BIN
media/containers-architecture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
BIN
media/dcct.png
Normal file
BIN
media/dcct.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 688 KiB |
File diff suppressed because it is too large
Load Diff
BIN
media/life-without-docker-compose.png
Normal file
BIN
media/life-without-docker-compose.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 635 KiB |
BIN
media/networking-host-network.png
Normal file
BIN
media/networking-host-network.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 509 KiB |
BIN
media/networking.png
Normal file
BIN
media/networking.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 726 KiB |
Reference in New Issue
Block a user