refact: change project folders name
This commit is contained in:
parent
a6879f3849
commit
73a9376a33
|
|
@ -206,7 +206,7 @@ Basic manual compilation and run:
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Mqtt broker:
|
Mqtt broker:
|
||||||
<pre>user@user-laptop:~$ cd oktopus/backend/services/mochi/ && go run cmd/main.go -redis "127.0.0.1:6379"</pre>
|
<pre>user@user-laptop:~$ cd oktopus/backend/services/mqtt/ && go run cmd/main.go -redis "127.0.0.1:6379"</pre>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
TR-369 controller:
|
TR-369 controller:
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,33 @@
|
||||||
services:
|
services:
|
||||||
|
|
||||||
oktopustr369:
|
controller:
|
||||||
image: 'golang:1.21.4'
|
image: 'golang:1.21.4'
|
||||||
container_name: oktopustr369
|
container_name: controlller
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/app/oktopus
|
- ../:/app/oktopus
|
||||||
command: bash -c "cd /app/oktopus/backend/services/controller && go run cmd/oktopus/main.go -mongo mongodb://172.16.235.2:27017 -a 172.16.235.4 -p 1883 -ws_addr 172.16.235.8"
|
command: bash -c "cd /app/oktopus/backend/services/controller && go run cmd/oktopus/main.go -mongo mongodb://172.16.235.2:27017 -a 172.16.235.4 -p 1883 -ws_addr 172.16.235.8"
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
- mochi
|
- mqtt
|
||||||
- websockets
|
- websockets
|
||||||
networks:
|
networks:
|
||||||
usp_network:
|
usp_network:
|
||||||
ipv4_address: 172.16.235.7
|
ipv4_address: 172.16.235.7
|
||||||
|
|
||||||
|
nats:
|
||||||
|
image: 'nats:latest'
|
||||||
|
container_name: nats
|
||||||
|
ports:
|
||||||
|
- 4222:4222
|
||||||
|
- 8222:8222
|
||||||
|
command: -n oktopus -m 8222 -js
|
||||||
|
networks:
|
||||||
|
usp_network:
|
||||||
|
ipv4_address: 172.16.235.9
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo
|
image: mongo
|
||||||
|
|
@ -32,14 +43,14 @@ services:
|
||||||
usp_network:
|
usp_network:
|
||||||
ipv4_address: 172.16.235.3
|
ipv4_address: 172.16.235.3
|
||||||
|
|
||||||
mochi:
|
mqtt:
|
||||||
image: 'golang:1.21.4'
|
image: 'golang:1.21.4'
|
||||||
container_name: mochi
|
container_name: mqtt
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/app/oktopus
|
- ../:/app/oktopus
|
||||||
command: bash -c "cd /app/oktopus/backend/services/mochi/cmd/ && go run main.go -redis 'redis:6379' -info :8081"
|
command: bash -c "cd /app/oktopus/backend/services/mqtt/cmd/ && go run main.go -redis 'redis:6379' -info :8081"
|
||||||
ports:
|
ports:
|
||||||
- 1883:1883
|
- 1883:1883
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user