Christos Choutouridis b814885a96 Dockerize passman for modern environments
Ported the original passman PHP/MySQL application to a Docker-based setup using Apache and MariaDB.
Fixed compatibility issues with modern PHP/MariaDB versions (HTTP header handling and database collation) using minimal, targeted changes.
Preserved the original application logic and structure while ensuring correct execution in a contemporary containerized environment.
2026-01-10 19:20:00 +02:00

34 lines
575 B
YAML

services:
web:
build: .
ports:
- "80:80"
volumes:
- ./php:/var/www/html
environment:
DB_HOST: db
DB_USER: root
DB_PASS: rootpass
DB_NAME: pwd_mgr
depends_on:
- db
db:
image: mariadb:11
container_name: passman_db
environment:
MARIADB_ROOT_PASSWORD: rootpass
MARIADB_DATABASE: pwd_mgr
volumes:
# This auto-imports .sql on first run
- ./db/init:/docker-entrypoint-initdb.d
# Our DB
- dbdata:/var/lib/mysql
ports:
- "3306:3306"
volumes:
dbdata: