Files
mrbs-equbao-2026/docker_app/HOWTO.md
T
人事系统开发 48092cab42
Docker image / push (push) Canceled after 0s
MRBS 1.12.2 等保2.0二级整改完整提交
包含:登录失败锁定、90天密码有效期、30分钟会话超时、
强制改密、登录审计日志、屏幕水印、企业背景图、
备案信息固定底部、favicon、登录页JS修复等全部改动
2026-09-08 21:19:47 +08:00

1.2 KiB

Dev environment

This docker setup is supposed to get a running system for local development.

Run locally

  • Compose Docker containers:

    cd docker_app
    docker compose up -d
    

    (Linux users may need sudo or docker login)

  • Open localhost:8080 in your browser
    Logins are defined at first use. (There may be example data in the future)

Additonal information

Inspect database

Open localhost:8888 in your browser for phpmyadmin
Login: mrbs:mrbs

Alternatively, you can connect to the database using the command like tool mysql:

docker-compose db mysql -u mrbs -pmrbs mrbs

View logs

View apache webserver logs:

docker compose logs www

View database logs:

docker compose logs db

Live reloading

The repository's source code is mounted into the docker containers. That means, changes of code take effect immediately after refreshing the browser.

However, when configuration of php and database is change, you have to reset the containers.

Reset containers

  • Stop Docker containers:
    docker compose down
    
  • Delete persisted volumes:
    docker volume prune
    
  • Rebuild container images:
    docker compose build