From 1748bddbfbeb4c41a71186f57a14dcee4fabbd81 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 12 Feb 2024 20:53:41 +0000 Subject: [PATCH] Dateien nach "install-2fauth-on-docker" hochladen --- install-2fauth-on-docker/docker-compose.yml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 install-2fauth-on-docker/docker-compose.yml diff --git a/install-2fauth-on-docker/docker-compose.yml b/install-2fauth-on-docker/docker-compose.yml new file mode 100644 index 0000000..8177d51 --- /dev/null +++ b/install-2fauth-on-docker/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.8" # Docker Compose file format version + +services: + # Define the service 'app' for the 2fauth application + app: + # Name of the Docker container + container_name: M_Viper-2fauth + + # Docker image to use for this service + image: 2fauth/2fauth:5.0.3 + + # Restart policy - restart the container unless it's stopped manually + restart: unless-stopped + + # Port mapping - Maps port 8000 of the container to port 8000 on the host + ports: + - "8000:8000" + + # Network mode - Use the default bridge network for this container + network_mode: bridge + + # Volume configuration - Map a named volume to the container's directory + volumes: + - twofauth_data:/2fauth + +# Volume definitions (named volumes) +volumes: + twofauth_data: + # Define a named volume. Docker manages the location on the host. + # Replace with custom driver configurations if needed.