mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix docker files
This commit is contained in:
parent
86ce91c16f
commit
1290b99a80
167
.gitlab-ci.yml
167
.gitlab-ci.yml
@ -1,167 +0,0 @@
|
||||
# IMPORTANT:
|
||||
#
|
||||
# This CI/CD will run on an Ubuntu VM. After this script runs, the VM will retain the state.
|
||||
# It's your responsibility to clean the VM up in the cleanup stage after job finishes executing.
|
||||
# This script runs on Microk8s. Since our deployments are on Kubernetes, our aim is to create EXACT same replica for test, staging and production.
|
||||
|
||||
# Define stages
|
||||
stages:
|
||||
- BuildAndTest
|
||||
- Deploy
|
||||
- RollbackIfDeploymentFail
|
||||
- Tests
|
||||
- RollbackIfTestsFail
|
||||
|
||||
include:
|
||||
# GLOBAL JOBS
|
||||
- '/ci/spec/global/lint.yaml'
|
||||
- '/ci/spec/global/rollback.yaml'
|
||||
|
||||
# ACCOUNTS
|
||||
- '/ci/spec/Accounts/audit.yaml'
|
||||
- '/ci/spec/Accounts/deploy.yaml'
|
||||
- '/ci/spec/Accounts/rollback.yaml'
|
||||
- '/ci/spec/Accounts/lighthouse.yaml'
|
||||
|
||||
# ADMIN DASHBOARD
|
||||
- '/ci/spec/AdminDashboard/audit.yaml'
|
||||
- '/ci/spec/AdminDashboard/deploy.yaml'
|
||||
- '/ci/spec/AdminDashboard/rollback.yaml'
|
||||
|
||||
# ApiDocs DASHBOARD
|
||||
- '/ci/spec/ApiDocs/audit.yaml'
|
||||
- '/ci/spec/ApiDocs/deploy.yaml'
|
||||
- '/ci/spec/ApiDocs/rollback.yaml'
|
||||
|
||||
# BACKEND
|
||||
- '/ci/spec/DashboardAPI:/audit.yaml'
|
||||
- '/ci/spec/DashboardAPI:/build-n-test.yaml'
|
||||
- '/ci/spec/DashboardAPI:/deploy.yaml'
|
||||
- '/ci/spec/DashboardAPI:/rollback.yaml'
|
||||
|
||||
# DASHBOARD
|
||||
- '/ci/spec/dashboard/audit.yaml'
|
||||
- '/ci/spec/dashboard/deploy.yaml'
|
||||
- '/ci/spec/dashboard/rollback.yaml'
|
||||
|
||||
# HelmChart
|
||||
- '/ci/spec/HelmChart/audit.yaml'
|
||||
- '/ci/spec/HelmChart/build-n-test.yaml'
|
||||
- '/ci/spec/HelmChart/deploy.yaml'
|
||||
- '/ci/spec/HelmChart/rollback.yaml'
|
||||
|
||||
# HOME
|
||||
- '/ci/spec/home/audit.yaml'
|
||||
- '/ci/spec/home/deploy.yaml'
|
||||
- '/ci/spec/home/rollback.yaml'
|
||||
- '/ci/spec/home/lighthouse.yaml'
|
||||
|
||||
# HttpTestServer
|
||||
- '/ci/spec/HttpTestServer/audit.yaml'
|
||||
- '/ci/spec/HttpTestServer/deploy.yaml'
|
||||
- '/ci/spec/HttpTestServer/rollback.yaml'
|
||||
|
||||
# InitScript
|
||||
- '/ci/spec/InitScript/audit.yaml'
|
||||
- '/ci/spec/InitScript/deploy.yaml'
|
||||
|
||||
# LIGHTHOUSE RUNNER
|
||||
- '/ci/spec/LighthouseRunner/audit.yaml'
|
||||
- '/ci/spec/LighthouseRunner/deploy.yaml'
|
||||
|
||||
# LICENSING
|
||||
- '/ci/spec/licensing/audit.yaml'
|
||||
- '/ci/spec/licensing/build-n-test.yaml'
|
||||
- '/ci/spec/licensing/deploy.yaml'
|
||||
- '/ci/spec/licensing/rollback.yaml'
|
||||
|
||||
# PROBE
|
||||
- '/ci/spec/probe/audit.yaml'
|
||||
- '/ci/spec/probe/deploy.yaml'
|
||||
- '/ci/spec/probe/rollback.yaml'
|
||||
|
||||
# StatusPage
|
||||
- '/ci/spec/StatusPage/audit.yaml'
|
||||
- '/ci/spec/StatusPage/deploy.yaml'
|
||||
- '/ci/spec/StatusPage/rollback.yaml'
|
||||
|
||||
# ZAPIER
|
||||
- '/ci/spec/zapier/audit.yaml'
|
||||
- '/ci/spec/zapier/build-n-test.yaml'
|
||||
|
||||
# E2E
|
||||
- '/ci/spec/e2e/docker-compose-enterprise-test.yaml'
|
||||
- '/ci/spec/e2e/docker-compose-test.yaml'
|
||||
- '/ci/spec/e2e/kubernetes-enterprise-test.yaml'
|
||||
- '/ci/spec/e2e/kubernetes-test.yaml'
|
||||
|
||||
# SMOKE TEST
|
||||
- '/ci/spec/tests/staging.yaml'
|
||||
- '/ci/spec/tests/production.yaml'
|
||||
|
||||
# JavaScriptSDK
|
||||
- '/ci/spec/JavaScriptSDK/audit.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/deploy.yaml'
|
||||
|
||||
# PhpSDK
|
||||
- '/ci/spec/PhpSDK/audit.yaml'
|
||||
- '/ci/spec/PhpSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PhpSDK/deploy.yaml'
|
||||
|
||||
# JavaSDK
|
||||
- '/ci/spec/JavaSDK/audit.yaml'
|
||||
- '/ci/spec/JavaSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaSDK/deploy.yaml'
|
||||
|
||||
# PythonSDK
|
||||
- '/ci/spec/PythonSDK/audit.yaml'
|
||||
- '/ci/spec/PythonSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PythonSDK/deploy.yaml'
|
||||
|
||||
# RUBY-SDK
|
||||
- '/ci/spec/ruby-sdk/audit.yaml'
|
||||
- '/ci/spec/ruby-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/ruby-sdk/deploy.yaml'
|
||||
|
||||
# HARAKA
|
||||
- '/ci/spec/haraka/deploy.yaml'
|
||||
|
||||
# ONEUPTIME-LE-STORE
|
||||
- '/ci/spec/oneuptime-le-store/deploy.yaml'
|
||||
|
||||
# ONEUPTIME-ACME-HTTP-01
|
||||
- '/ci/spec/oneuptime-acme-http-01/deploy.yaml'
|
||||
|
||||
# ONEUPTIME-GL-MANAGER
|
||||
- '/ci/spec/oneuptime-gl-manager/deploy.yaml'
|
||||
|
||||
# Application Scanner
|
||||
- '/ci/spec/ApplicationScanner/deploy.yaml'
|
||||
|
||||
# Script Runner
|
||||
- '/ci/spec/ScriptRunner/audit.yaml'
|
||||
- '/ci/spec/ScriptRunner/deploy.yaml'
|
||||
|
||||
# Container Scanner
|
||||
- '/ci/spec/ContainerScanner/deploy.yaml'
|
||||
|
||||
# realtime
|
||||
- '/ci/spec/realtime/audit.yaml'
|
||||
- '/ci/spec/realtime/deploy.yaml'
|
||||
- '/ci/spec/realtime/rollback.yaml'
|
||||
|
||||
# DataIngestor
|
||||
- '/ci/spec/DataIngestor/audit.yaml'
|
||||
- '/ci/spec/DataIngestor/deploy.yaml'
|
||||
- '/ci/spec/DataIngestor/rollback.yaml'
|
||||
|
||||
# ProbeAPI
|
||||
- '/ci/spec/ProbeAPI/audit.yaml'
|
||||
- '/ci/spec/ProbeAPI/deploy.yaml'
|
||||
- '/ci/spec/ProbeAPI/rollback.yaml'
|
||||
|
||||
# # GoSDK
|
||||
# - '/ci/spec/GoSDK/audit.yaml'
|
||||
# - '/ci/spec/GoSDK/build-n-test.yaml'
|
||||
# - '/ci/spec/GoSDK/deploy.yaml'
|
@ -1,4 +1,8 @@
|
||||
# This docker file is for CI.
|
||||
# It it builds and tests docker containers in the CI pipeline.
|
||||
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:4.2.3
|
||||
@ -23,6 +27,7 @@ services:
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
|
||||
dashboard-api:
|
||||
ports:
|
||||
- '3002:3002'
|
||||
@ -35,20 +40,20 @@ services:
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REDIS_HOST=redis
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- CLUSTER_KEY=test
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
- haraka
|
||||
- ScriptRunner
|
||||
- script-runner
|
||||
accounts:
|
||||
ports:
|
||||
- '3003:3003'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./accounts/Dockerfile
|
||||
dockerfile: ./Accounts/Dockerfile
|
||||
env_file:
|
||||
- ./Accounts/.env
|
||||
environment:
|
||||
@ -60,7 +65,7 @@ services:
|
||||
- '3000:3000'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./dashboard/Dockerfile
|
||||
dockerfile: ./Dashboard/Dockerfile
|
||||
env_file:
|
||||
- ./Dashboard/.env
|
||||
environment:
|
||||
@ -77,13 +82,13 @@ services:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./home/Dockerfile
|
||||
StatusPage:
|
||||
dockerfile: ./Home/Dockerfile
|
||||
status-page:
|
||||
ports:
|
||||
- '3006:3006'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./StatusPage/Dockerfile
|
||||
dockerfile: ./status-page/Dockerfile
|
||||
env_file:
|
||||
- ./StatusPage/.env
|
||||
environment:
|
||||
@ -92,7 +97,7 @@ services:
|
||||
- dashboard-api
|
||||
- accounts
|
||||
- dashboard
|
||||
AdminDashboard:
|
||||
admin-dashboard:
|
||||
ports:
|
||||
- '3100:3100'
|
||||
build:
|
||||
@ -105,7 +110,7 @@ services:
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- accounts
|
||||
HttpTestServer:
|
||||
http-test-server:
|
||||
ports:
|
||||
- '3010:3010'
|
||||
env_file:
|
||||
@ -119,29 +124,29 @@ services:
|
||||
ports:
|
||||
- '3004:3004'
|
||||
env_file:
|
||||
- ./licensing/.env
|
||||
- ./Licensing/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./licensing/Dockerfile
|
||||
dockerfile: ./Licensing/Dockerfile
|
||||
data-ingestor:
|
||||
ports:
|
||||
- '3200:3200'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./data-ingestor/Dockerfile
|
||||
dockerfile: ./DataIngestor/Dockerfile
|
||||
env_file:
|
||||
- ./DataIngestor/.env
|
||||
environment:
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
- mongo
|
||||
- ScriptRunner
|
||||
- script-runner
|
||||
- dashboard-api
|
||||
- realtime
|
||||
realtime:
|
||||
@ -149,20 +154,20 @@ services:
|
||||
- '3300:3300'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./realtime/Dockerfile
|
||||
dockerfile: ./Realtime/Dockerfile
|
||||
env_file:
|
||||
- ./Realtime/.env
|
||||
environment:
|
||||
- CLUSTER_KEY=test
|
||||
- PORT=3300
|
||||
ProbeAPI:
|
||||
probe-api:
|
||||
ports:
|
||||
- '3400:3400'
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./ProbeAPI/Dockerfile
|
||||
env_file:
|
||||
- ./ProbeAPI/.env
|
||||
- ./ProbeApi/.env
|
||||
environment:
|
||||
- CLUSTER_KEY=test
|
||||
- PORT=3400
|
||||
@ -171,7 +176,7 @@ services:
|
||||
probe1:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./probe/Dockerfile
|
||||
dockerfile: ./Probe/Dockerfile
|
||||
env_file:
|
||||
- ./Probe/.env
|
||||
environment:
|
||||
@ -182,14 +187,14 @@ services:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- CLUSTER_KEY=test
|
||||
- DATA_INGESTOR_URL=http://data-ingestor:3200
|
||||
- PROBE_API_URL=http://ProbeAPI:3400
|
||||
- PROBE_API_URL=http://probe-api:3400
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- data-ingestor
|
||||
probe2:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./probe/Dockerfile
|
||||
dockerfile: ./Probe/Dockerfile
|
||||
env_file:
|
||||
- ./Probe/.env
|
||||
environment:
|
||||
@ -203,7 +208,7 @@ services:
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- data-ingestor
|
||||
ApiDocs:
|
||||
api-docs:
|
||||
ports:
|
||||
- '1445:1445'
|
||||
build:
|
||||
@ -213,7 +218,7 @@ services:
|
||||
- ./ApiDocs/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
InitScript:
|
||||
init-script:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./InitScript/Dockerfile
|
||||
@ -246,7 +251,7 @@ services:
|
||||
- DKIM_PRIVATE_KEY="${DKIM_PRIVATE_KEY}"
|
||||
- TLS_CERT="${TLS_CERT}"
|
||||
- TLS_KEY="${TLS_KEY}"
|
||||
ScriptRunner:
|
||||
script-runner:
|
||||
ports:
|
||||
- '3009:3009'
|
||||
build:
|
||||
@ -258,7 +263,7 @@ services:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
ApplicationScanner:
|
||||
application-scanner:
|
||||
ports:
|
||||
- '3005:3005'
|
||||
build:
|
||||
@ -273,7 +278,7 @@ services:
|
||||
- CLUSTER_KEY=test
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
ContainerScanner:
|
||||
container-scanner:
|
||||
ports:
|
||||
- '3055:3055'
|
||||
build:
|
||||
@ -288,7 +293,7 @@ services:
|
||||
- CLUSTER_KEY=test
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
LighthouseRunner:
|
||||
lighthouse-runner:
|
||||
ports:
|
||||
- '3015:3015'
|
||||
build:
|
||||
@ -310,7 +315,7 @@ services:
|
||||
- home
|
||||
- dashboard
|
||||
- accounts
|
||||
- AdminDashboard
|
||||
- admin-dashboard
|
||||
restart: always
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
|
@ -1,3 +1,8 @@
|
||||
# This docker file is for development.
|
||||
# It connects to debugging ports that help you debug the app.
|
||||
|
||||
|
||||
|
||||
version: '3.7'
|
||||
services:
|
||||
##IMPORTANT:
|
||||
@ -50,7 +55,7 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./accounts/Dockerfile.dev
|
||||
dockerfile: ./Accounts/Dockerfile.dev
|
||||
env_file:
|
||||
- ./Accounts/.env
|
||||
environment:
|
||||
@ -68,18 +73,18 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./data-ingestor/Dockerfile.dev
|
||||
dockerfile: ./DataIngestor/Dockerfile.dev
|
||||
env_file:
|
||||
- ./DataIngestor/.env
|
||||
environment:
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
- mongo
|
||||
- ScriptRunner
|
||||
- script-runner
|
||||
- dashboard-api
|
||||
- realtime
|
||||
volumes:
|
||||
@ -95,7 +100,7 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./realtime/Dockerfile.dev
|
||||
dockerfile: ./Realtime/Dockerfile.dev
|
||||
env_file:
|
||||
- ./Realtime/.env
|
||||
environment:
|
||||
@ -107,7 +112,7 @@ services:
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules
|
||||
|
||||
ProbeAPI:
|
||||
probe-api:
|
||||
ports:
|
||||
- '3400:3400'
|
||||
- '9251:9229' # Debugging port.
|
||||
@ -116,14 +121,14 @@ services:
|
||||
context: .
|
||||
dockerfile: ./ProbeAPI/Dockerfile.dev
|
||||
env_file:
|
||||
- ./ProbeAPI/.env
|
||||
- ./ProbeApi/.env
|
||||
environment:
|
||||
- CLUSTER_KEY=test
|
||||
- PORT=3400
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
volumes:
|
||||
- ./ProbeAPI:/usr/src/app
|
||||
- ./probe-api:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
@ -136,7 +141,7 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./probe/Dockerfile.dev
|
||||
dockerfile: ./Probe/Dockerfile.dev
|
||||
env_file:
|
||||
- ./Probe/.env
|
||||
environment:
|
||||
@ -147,7 +152,7 @@ services:
|
||||
- PROBE_KEY=test-key
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- CLUSTER_KEY=test
|
||||
- PROBE_API_URL=http://ProbeAPI:3400
|
||||
- PROBE_API_URL=http://probe-api:3400
|
||||
volumes:
|
||||
- ./probe:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
@ -155,7 +160,7 @@ services:
|
||||
- /usr/src/app/node_modules/
|
||||
- /usr/src/app/greenlock.d/
|
||||
|
||||
ApiDocs:
|
||||
api-docs:
|
||||
ports:
|
||||
- '1445:1445'
|
||||
build:
|
||||
@ -167,12 +172,12 @@ services:
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
volumes:
|
||||
- ./ApiDocs:/usr/src/app
|
||||
- ./api-docs:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
|
||||
InitScript:
|
||||
init-script:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
@ -192,12 +197,12 @@ services:
|
||||
- mongo
|
||||
- redis
|
||||
volumes:
|
||||
- ./InitScript:/usr/src/app
|
||||
- ./init-script:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
|
||||
ScriptRunner:
|
||||
script-runner:
|
||||
ports:
|
||||
- '3009:3009'
|
||||
- '9236:9229' # Debugging port.
|
||||
@ -212,7 +217,7 @@ services:
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
volumes:
|
||||
- ./ScriptRunner:/usr/src/app
|
||||
- ./script-runner:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
@ -224,7 +229,7 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./dashboard-api/Dockerfile.dev
|
||||
dockerfile: ./DashboardAPI/Dockerfile.dev
|
||||
env_file:
|
||||
- ./DashboardAPI/.env
|
||||
environment:
|
||||
@ -232,7 +237,7 @@ services:
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- CLUSTER_KEY=test
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
@ -282,7 +287,7 @@ services:
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
|
||||
StatusPage:
|
||||
status-page:
|
||||
ports:
|
||||
- '3006:3006'
|
||||
build:
|
||||
@ -294,12 +299,12 @@ services:
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
volumes:
|
||||
- ./StatusPage:/usr/src/app
|
||||
- ./status-page:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
|
||||
AdminDashboard:
|
||||
admin-dashboard:
|
||||
ports:
|
||||
- '3100:3100'
|
||||
build:
|
||||
@ -311,12 +316,12 @@ services:
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
volumes:
|
||||
- ./AdminDashboard:/usr/src/app
|
||||
- ./admin-dashboard:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
|
||||
HttpTestServer:
|
||||
http-test-server:
|
||||
ports:
|
||||
- '3010:3010'
|
||||
- '9234:9229' # Debugging port.
|
||||
@ -327,7 +332,7 @@ services:
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./HttpTestServer/Dockerfile.dev
|
||||
dockerfile: ./HTTPTestServer/Dockerfile.dev
|
||||
volumes:
|
||||
- ./HttpTestServer:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
@ -339,19 +344,19 @@ services:
|
||||
- '3004:3004'
|
||||
- '9233:9229' # Debugging port.
|
||||
env_file:
|
||||
- ./licensing/.env
|
||||
- ./Licensing/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
build:
|
||||
network: host
|
||||
context: .
|
||||
dockerfile: ./licensing/Dockerfile.dev
|
||||
dockerfile: ./Licensing/Dockerfile.dev
|
||||
volumes:
|
||||
- ./licensing:/usr/src/app
|
||||
- ./Licensing:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
ApplicationScanner:
|
||||
application-scanner:
|
||||
ports:
|
||||
- '3005:3005'
|
||||
- '9240:9229' # Debugging port.
|
||||
@ -373,7 +378,7 @@ services:
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
ContainerScanner:
|
||||
container-scanner:
|
||||
ports:
|
||||
- '3055:3055'
|
||||
- '9242:9229' # Debugging port.
|
||||
@ -395,7 +400,7 @@ services:
|
||||
# Use node modules of the container and not host system.
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
LighthouseRunner:
|
||||
lighthouse-runner:
|
||||
ports:
|
||||
- '3015:3015'
|
||||
- '9241:9229' # Debugging port.
|
||||
@ -422,7 +427,7 @@ services:
|
||||
- home
|
||||
- dashboard
|
||||
- accounts
|
||||
- AdminDashboard
|
||||
- admin-dashboard
|
||||
restart: always
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
|
@ -34,14 +34,14 @@ services:
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REDIS_HOST=redis
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- CLUSTER_KEY=test
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
- haraka
|
||||
- ScriptRunner
|
||||
- script-runner
|
||||
accounts:
|
||||
ports:
|
||||
- '3003:3003'
|
||||
@ -71,10 +71,10 @@ services:
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
image: oneuptime/home:latest
|
||||
StatusPage:
|
||||
status-page:
|
||||
ports:
|
||||
- '3006:3006'
|
||||
image: oneuptime/StatusPage:latest
|
||||
image: oneuptime/status-page:latest
|
||||
env_file:
|
||||
- ./StatusPage/.env
|
||||
environment:
|
||||
@ -83,10 +83,10 @@ services:
|
||||
- dashboard-api
|
||||
- accounts
|
||||
- dashboard
|
||||
AdminDashboard:
|
||||
admin-dashboard:
|
||||
ports:
|
||||
- '3100:3100'
|
||||
image: oneuptime/AdminDashboard:latest
|
||||
image: oneuptime/admin-dashboard:latest
|
||||
env_file:
|
||||
- ./AdminDashboard/.env
|
||||
environment:
|
||||
@ -94,19 +94,19 @@ services:
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- accounts
|
||||
HttpTestServer:
|
||||
http-test-server:
|
||||
ports:
|
||||
- '3010:3010'
|
||||
env_file:
|
||||
- ./HttpTestServer/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
image: oneuptime/HttpTestServer:latest
|
||||
image: oneuptime/http-test-server:latest
|
||||
licensing:
|
||||
ports:
|
||||
- '3004:3004'
|
||||
env_file:
|
||||
- ./licensing/.env
|
||||
- ./Licensing/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
image: oneuptime/licensing:latest
|
||||
@ -119,12 +119,12 @@ services:
|
||||
environment:
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
- SCRIPT_RUNNER_URL=http://ScriptRunner:3009
|
||||
- SCRIPT_RUNNER_URL=http://script-runner:3009
|
||||
- MONGO_URL=mongodb://mongo:27017/oneuptimedb
|
||||
- REALTIME_URL=http://realtime:3300
|
||||
depends_on:
|
||||
- mongo
|
||||
- ScriptRunner
|
||||
- script-runner
|
||||
- dashboard-api
|
||||
- realtime
|
||||
realtime:
|
||||
@ -136,12 +136,12 @@ services:
|
||||
environment:
|
||||
- CLUSTER_KEY=test
|
||||
- PORT=3300
|
||||
ProbeAPI:
|
||||
probe-api:
|
||||
ports:
|
||||
- '3400:3400'
|
||||
image: oneuptime/ProbeAPI:latest
|
||||
image: oneuptime/probe-api:latest
|
||||
env_file:
|
||||
- ./ProbeAPI/.env
|
||||
- ./ProbeApi/.env
|
||||
environment:
|
||||
- CLUSTER_KEY=test
|
||||
- PORT=3400
|
||||
@ -159,7 +159,7 @@ services:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- CLUSTER_KEY=test
|
||||
- DATA_INGESTOR_URL=http://data-ingestor:3200
|
||||
- PROBE_API_URL=http://ProbeAPI:3400
|
||||
- PROBE_API_URL=http://probe-api:3400
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- data-ingestor
|
||||
@ -178,16 +178,16 @@ services:
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
- data-ingestor
|
||||
ApiDocs:
|
||||
api-docs:
|
||||
ports:
|
||||
- '1445:1445'
|
||||
image: oneuptime/ApiDocs:latest
|
||||
image: oneuptime/api-docs:latest
|
||||
env_file:
|
||||
- ./ApiDocs/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
InitScript:
|
||||
image: oneuptime/InitScript:latest
|
||||
init-script:
|
||||
image: oneuptime/init-script:latest
|
||||
ports:
|
||||
- '1447:1447'
|
||||
env_file:
|
||||
@ -214,20 +214,20 @@ services:
|
||||
- DKIM_PRIVATE_KEY="${DKIM_PRIVATE_KEY}"
|
||||
- TLS_CERT="${TLS_CERT}"
|
||||
- TLS_KEY="${TLS_KEY}"
|
||||
ScriptRunner:
|
||||
script-runner:
|
||||
ports:
|
||||
- '3009:3009'
|
||||
image: oneuptime/ScriptRunner:latest
|
||||
image: oneuptime/script-runner:latest
|
||||
env_file:
|
||||
- ./ScriptRunner/.env
|
||||
environment:
|
||||
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
|
||||
- SERVER_URL=http://dashboard-api:3002
|
||||
- CLUSTER_KEY=test
|
||||
ApplicationScanner:
|
||||
application-scanner:
|
||||
ports:
|
||||
- '3005:3005'
|
||||
image: oneuptime/ApplicationScanner:latest
|
||||
image: oneuptime/application-scanner:latest
|
||||
env_file:
|
||||
- ./ApplicationScanner/.env
|
||||
environment:
|
||||
@ -238,10 +238,10 @@ services:
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
|
||||
ContainerScanner:
|
||||
container-scanner:
|
||||
ports:
|
||||
- '3055:3055'
|
||||
image: oneuptime/ContainerScanner:latest
|
||||
image: oneuptime/container-scanner:latest
|
||||
env_file:
|
||||
- ./ContainerScanner/.env
|
||||
environment:
|
||||
@ -251,10 +251,10 @@ services:
|
||||
- CLUSTER_KEY=test
|
||||
depends_on:
|
||||
- dashboard-api
|
||||
LighthouseRunner:
|
||||
lighthouse-runner:
|
||||
ports:
|
||||
- '3015:3015'
|
||||
image: oneuptime/LighthouseRunner:latest
|
||||
image: oneuptime/lighthouse-runner:latest
|
||||
env_file:
|
||||
- ./LighthouseRunner/.env
|
||||
environment:
|
||||
@ -272,7 +272,7 @@ services:
|
||||
- home
|
||||
- dashboard
|
||||
- accounts
|
||||
- AdminDashboard
|
||||
- admin-dashboard
|
||||
restart: always
|
||||
image: oneuptime/nginx:latest
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user