-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split docker-compose.yml into multiple files for ARGoS/Crazyflie diff…
…erences
- Loading branch information
Showing
4 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: "3.8" | ||
|
||
services: | ||
server: | ||
command: argos | ||
volumes: | ||
- socket:/tmp/hivexplore # TODO: Document this directory # TODO: Check if /tmp/ is conventional for socket location inside container | ||
|
||
argos: | ||
build: ./argos | ||
image: hivexplore/argos | ||
volumes: | ||
- $XSOCKET:$XSOCKET | ||
- $XAUTHORITY:$XAUTHORITY | ||
- socket:/tmp/hivexplore # TODO: Document this directory | ||
environment: | ||
DISPLAY: $DISPLAY | ||
XAUTHORITY: $XAUTHORITY | ||
|
||
volumes: | ||
socket: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: "3.8" | ||
|
||
services: | ||
server: | ||
devices: | ||
- /dev/bus/usb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,22 @@ | ||
version: "3.8" | ||
|
||
x-server: | ||
&server-base | ||
build: ./server | ||
image: hivexplore/server | ||
ports: | ||
- 5678:5678 | ||
volumes: | ||
- logs:/hivexplore/logs # TODO: Change server code to use different directory (env variable maybe?) | ||
|
||
services: | ||
client: | ||
build: ./client | ||
image: hivexplore/client | ||
ports: | ||
- 3995:80 | ||
|
||
server_crazyflie: | ||
<< : *server-base | ||
profiles: ["crazyflie"] | ||
devices: | ||
- /dev/bus/usb | ||
|
||
server_argos: | ||
<< : *server-base | ||
profiles: ["argos"] | ||
command: argos | ||
volumes: | ||
- socket:/tmp/hivexplore # TODO: Document this directory # TODO: Check if /tmp/ is conventional for socket location inside container | ||
|
||
argos: | ||
build: ./argos | ||
image: hivexplore/argos | ||
profiles: ["argos"] | ||
server: | ||
build: ./server | ||
image: hivexplore/server | ||
ports: | ||
- 5678:5678 | ||
volumes: | ||
- $XSOCKET:$XSOCKET | ||
- $XAUTHORITY:$XAUTHORITY | ||
- socket:/tmp/hivexplore # TODO: Document this directory | ||
environment: | ||
DISPLAY: $DISPLAY | ||
XAUTHORITY: $XAUTHORITY | ||
- logs:/hivexplore/logs # TODO: Change server code to use different directory (env variable maybe?) | ||
|
||
volumes: | ||
socket: | ||
logs: | ||
# TODO: Rename volumes? | ||
# TODO: Multiple volumes or one volume? | ||
# TODO: Fix permission issue, maybe this link: https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker | ||
# TODO: Profiles? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters