php-docker-compose/docker-compose.yaml
2024-10-24 11:16:56 +00:00

21 lines
488 B
YAML

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}