Add MongoDB integration and configure Docker container to publish app on port 8084
This commit is contained in:
+2
-35
@@ -1,46 +1,13 @@
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.11
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 1123581321Rt%
|
||||
MYSQL_DATABASE: hospitalsantojanni
|
||||
MYSQL_USER: hospitaluser
|
||||
MYSQL_PASSWORD: 1123581321Rt%
|
||||
ports:
|
||||
- "3307:3306"
|
||||
volumes:
|
||||
- mariadb-data:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- VITE_API_URL=/api
|
||||
ports:
|
||||
- "8077:80"
|
||||
- "4000:4000"
|
||||
- "8084:80"
|
||||
environment:
|
||||
DB_HOST: localhost
|
||||
DB_PORT: "3307"
|
||||
DB_USER: hospitaluser
|
||||
DB_PASSWORD: 1123581321Rt%
|
||||
DB_NAME: hospitalsantojanni
|
||||
DB_NAME: hospital
|
||||
ADMIN_DNI: "35242633"
|
||||
ADMIN_PASSWORD: admin123
|
||||
volumes:
|
||||
- nginx-data:/usr/share/nginx/html
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mariadb-data:
|
||||
nginx-data:
|
||||
|
||||
Reference in New Issue
Block a user