From 91da4a5763ccd67e7f0a1a69ab0d26233b6d3788 Mon Sep 17 00:00:00 2001 From: Lukas Pupka-Lipinski Date: Thu, 8 May 2025 20:36:42 +0200 Subject: [PATCH] added compose chore: removed direct running --- docker-compose.yml | 13 +++++++++++++ vpn_monitor.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..02a0887 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3.7" +services: + aniworld: + build: . + #user: "1009:1008" # should be owner of volumes + container_name: aniworld + restart: always + networks: + - bridge_network + +networks: + bridge_network: + driver: bridge \ No newline at end of file diff --git a/vpn_monitor.sh b/vpn_monitor.sh index 42521ea..be8479f 100644 --- a/vpn_monitor.sh +++ b/vpn_monitor.sh @@ -28,7 +28,7 @@ if ! protonvpn-cli status | grep -q "Connected"; then fi # Start the main Python script in the background -python3 /main.py & +#python3 /main.py & MAIN_PID=$! # Monitor VPN connection