From 8b12ceca626aba9c11fc18ada16f8c945f573ac4 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 12 Feb 2024 20:54:08 +0000 Subject: [PATCH] Dateien nach "install-2fauth-on-portainer" hochladen --- .../docker-compose-2fauth.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 install-2fauth-on-portainer/docker-compose-2fauth.yml diff --git a/install-2fauth-on-portainer/docker-compose-2fauth.yml b/install-2fauth-on-portainer/docker-compose-2fauth.yml new file mode 100644 index 0000000..8177d51 --- /dev/null +++ b/install-2fauth-on-portainer/docker-compose-2fauth.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.