Added the statistics service to the stack

This commit is contained in:
Patrick Gregorio
2025-03-21 13:39:25 -06:00
parent 204141eca8
commit ece5b499f8
3 changed files with 19 additions and 4 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
], ],
"images": { "images": {
"linux/arm64": { "linux/arm64": {
"registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/arm64:v2.1": "streamline-emr:latest" "registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/arm64:v2.1": "streamline-emr:latest",
"registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/statistics/arm64:2.2": "statistics:latest"
} }
} }
} }
+16 -2
View File
@@ -4,9 +4,10 @@ services:
container_name: ${APP_CONTAINER:-streamline-emr} container_name: ${APP_CONTAINER:-streamline-emr}
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- "${DATA_DIR:-./data}:/var/lib/mysql" - "/var/signalytic/clientapps/streamline/streamline_emr/data:/var/lib/mysql"
ports: ports:
- "${APP_PORT:-3000}:80" - "${APP_PORT:-3000}:80"
command: ["sh", "-c", "composer install && php artisan migrate"]
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"] test: ["CMD", "curl", "-f", "http://localhost:80"]
timeout: 30s timeout: 30s
@@ -14,4 +15,17 @@ services:
start_interval: 10s start_interval: 10s
interval: 30s interval: 30s
retries: 5 retries: 5
networks:
- streamline
statistics:
image: ${STATISTICS_IMAGE:-statistics:latest}
container_name: ${STATISTICS_CONTAINER:-statistics}
restart: unless-stopped
# volumes:
# - ./resources/statistics:/
depends_on:
- streamline-emr
networks:
- streamline
networks:
streamline: