Skip to content

Commit

Permalink
Separated start up commands into shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
krey committed Jul 19, 2020
1 parent 90b2348 commit 5104a4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ services:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
command: >
sh -c "protonvpn connect --cc US &&
sockd -N $$SOCKD_WORKERS"
# volumes:
# - "./sockd.conf:/etc/sockd.conf"
command: sh /root/startup.sh
volumes:
- "./startup.sh:/root/startup.sh"
4 changes: 4 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
protonvpn connect --cc US
sockd -N $SOCKD_WORKERS &
bash

0 comments on commit 5104a4c

Please sign in to comment.