Add Docker with MariaDB support
- 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
This commit is contained in:
+7
-6
@@ -6,9 +6,10 @@ services:
|
||||
ports:
|
||||
- "8077:80"
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- hospital-data:/app
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
hospital-data:
|
||||
environment:
|
||||
- DB_HOST=localhost
|
||||
- DB_PORT=3306
|
||||
- DB_USER=hospital
|
||||
- DB_PASSWORD=hospital123
|
||||
- DB_NAME=hospital
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user