Add docker-compose.yaml

This commit is contained in:
Mayur 2024-10-24 11:16:56 +00:00
commit 86747cae81

21
docker-compose.yaml Normal file
View File

@ -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}