From 86747cae8162853a73e0b6c91488711cde8512de Mon Sep 17 00:00:00 2001 From: Mayur Date: Thu, 24 Oct 2024 11:16:56 +0000 Subject: [PATCH] Add docker-compose.yaml --- docker-compose.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..68904d2 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,21 @@ +version: "3.4" +services: + os: + build: + dockerfile: ./Dockerfile + context: ./ + tty: true + volumes: + - srvroot:/var/www + - apacheconf:/etc/apache2 + - phpconf:/usr/local/etc/php + - type: bind + source: ./authorized_keys + target: /root/.ssh/authorized_keys + content: | + # Authorized keys + ports: + - "${PUBLIC_SSH_PORT}:2022" + environment: + - container=podman + - SSH_PUBLIC_PORT=${PUBLIC_SSH_PORT:-3300} \ No newline at end of file