- Dockerfile now includes MariaDB server - Add docker-entrypoint.sh to initialize DB, create user, and set permissions - docker-compose.yml with configurable environment variables - Nginx config proxies API to backend
15 lines
268 B
YAML
15 lines
268 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "8077:80"
|
|
- "4000:4000"
|
|
environment:
|
|
- DB_HOST=localhost
|
|
- DB_PORT=3306
|
|
- DB_USER=hospital
|
|
- DB_PASSWORD=hospital123
|
|
- DB_NAME=hospital
|
|
restart: unless-stopped |