Skip to content

Commit

Permalink
chore: Add volume for persisting btop settings and update Docker Comp…
Browse files Browse the repository at this point in the history
…ose for local config directory mapping
  • Loading branch information
dragonfire1119 committed Aug 28, 2024
1 parent 11b5379 commit 521ef17
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions btop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ ENV LANG C.UTF-8
# Expose the port gotty will run on
EXPOSE 7681

# Define a volume to persist btop settings
VOLUME ["/root/.config/btop"]

# Start gotty and run btop
CMD ["gotty", "-p", "7681", "-w", "btop"]
3 changes: 3 additions & 0 deletions btop/Dockerfile.ttyd
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ ENV LANG C.UTF-8
# Expose the port ttyd will run on
EXPOSE 7681

# Define a volume to persist btop settings
VOLUME ["/root/.config/btop"]

# Start ttyd and run btop
CMD ["ttyd", "-p", "7681", "-W", "btop"]
2 changes: 1 addition & 1 deletion btop/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.0.5
5 changes: 3 additions & 2 deletions btop/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: "3.8" # Specify the version of the Docker Compose file format
version: "3.8"

services:
# Define the service named 'big-bear-btop'
big-bear-btop:
# Build the Docker image using the Dockerfile in the current directory
build: .
Expand All @@ -19,6 +18,8 @@ services:
- /dev:/dev
# Mount the host's /etc/localtime file to the container's /etc/localtime file (read-only)
- /etc/localtime:/etc/localtime:ro
# Mount a local directory for persisting btop configuration files
- /path/to/local/btop/config:/root/.config/btop
# Map port 7681 on the host to port 7681 on the container
ports:
- "7681:7681"

0 comments on commit 521ef17

Please sign in to comment.