Skip to content

Commit

Permalink
Update docker compose to use bridge network
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsaKhaledi committed Jan 1, 2025
1 parent b89c135 commit 12bf894
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docker-compose-px4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:
hostname: px4_sim
tty: true
privileged: true
network_mode: "host"
# networks:
# px4:
# ipv4_address: "10.20.10.2"
# network_mode: "host"
networks:
px4:
ipv4_address: "10.20.10.2"

environment:
DISPLAY: ${DISPLAY}
Expand Down Expand Up @@ -75,10 +75,10 @@ services:
container_name: rqt
hostname: rqt
tty: true
network_mode: "host"
# networks:
# mins:
# ipv4_address: "10.20.10.4"
# network_mode: "host"
networks:
px4:
ipv4_address: "10.20.10.3"
# restart: unless-stopped
depends_on:
- PX4
Expand All @@ -97,10 +97,10 @@ services:
container_name: uxrcedds
hostname: uxrcedds
tty: true
network_mode: "host"
# networks:
# mins:
# ipv4_address: "10.20.10.5"
# network_mode: "host"
networks:
px4:
ipv4_address: "10.20.10.4"
# restart: unless-stopped
depends_on:
- PX4
Expand All @@ -116,9 +116,9 @@ services:



# networks:
# px4:
# ipam:
# driver: default
# config:
# - subnet: "10.20.10.0/24"
networks:
px4:
ipam:
driver: default
config:
- subnet: "10.20.10.0/24"

0 comments on commit 12bf894

Please sign in to comment.