remove env tpl

This commit is contained in:
Simon Larsen 2023-07-17 20:06:01 +01:00
parent bc482345ce
commit d5b4bdbf6b
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
34 changed files with 7 additions and 857 deletions

View File

@ -1 +0,0 @@
PORT=3003

View File

@ -1 +0,0 @@
PORT={{ .Env.ACCOUNTS_PORT }}

View File

View File

@ -1 +0,0 @@
PORT={{ .Env.API_DOCS_PORT }}

View File

@ -1,4 +0,0 @@
CLICKHOUSE_USER={{ .Env.CLICKHOUSE_USER }}
CLICKHOUSE_PASSWORD={{ .Env.CLICKHOUSE_PASSWORD }}
CLICKHOUSE_DB=oneuptime
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1

3
Clickhouse/README.md Normal file
View File

@ -0,0 +1,3 @@
# Clickhouse
This folder is for clickhouse related files.

View File

@ -1,9 +0,0 @@
NODE_ENV={{ .Env.ENVIRONMENT }}
BILLING_ENABLED={{ .Env.BILLING_ENABLED }}
BILLING_PUBLIC_KEY={{ .Env.BILLING_PUBLIC_KEY }}
SUBSCRIPTION_PLAN_BASIC={{ .Env.SUBSCRIPTION_PLAN_BASIC }}
SUBSCRIPTION_PLAN_GROWTH={{ .Env.SUBSCRIPTION_PLAN_GROWTH }}
SUBSCRIPTION_PLAN_SCALE={{ .Env.SUBSCRIPTION_PLAN_SCALE }}
SUBSCRIPTION_PLAN_ENTERPRISE={{ .Env.SUBSCRIPTION_PLAN_ENTERPRISE }}
METERED_PLAN_ACTIVE_MONITORING={{ .Env.METERED_PLAN_ACTIVE_MONITORING }}
DOMAIN={{ .Env.DOMAIN }}

View File

@ -1,52 +0,0 @@
ONEUPTIME_SECRET={{ .Env.ONEUPTIME_SECRET }}
DATABASE_PORT={{ .Env.DATABASE_PORT }}
DATABASE_USERNAME={{ .Env.DATABASE_USERNAME }}
DATABASE_PASSWORD={{ .Env.DATABASE_PASSWORD }}
DATABASE_NAME={{ .Env.DATABASE_NAME }}
DATABASE_HOST={{ .Env.DATABASE_HOST }}
REDIS_PASSWORD={{ .Env.REDIS_PASSWORD }}
REDIS_HOST={{ .Env.REDIS_HOST }}
REDIS_PORT={{ .Env.REDIS_PORT }}
ENCRYPTION_SECRET={{ .Env.ENCRYPTION_SECRET }}
DISABLE_SIGNUP={{ .Env.DISABLE_SIGNUP }}
REALTIME_HOSTNAME={{ .Env.REALTIME_HOSTNAME }}
NOTIFICATION_HOSTNAME={{ .Env.NOTIFICATION_HOSTNAME }}
DASHBOARD_HOSTNAME=d{{ .Env.DASHBOARD_HOSTNAME }}
DASHBOARD_API_HOSTNAME={{ .Env.DASHBOARD_API_HOSTNAME }}
PROBE_API_HOSTNAME={{ .Env.DATA_INGESTOR_HOSTNAME }}
DATA_INGESTOR_HOSTNAME={{ .Env.DATA_INGESTOR_HOSTNAME }}
ACCOUNTS_HOSTNAME={{ .Env.ACCOUNTS_HOSTNAME }}
HOME_HOSTNAME={{ .Env.HOME_HOSTNAME }}
WORKER_HOSTNAME={{ .Env.WORKER_HOSTNAME }}
WORKFLOW_HOSTNAME={{ .Env.WORKFLOW_HOSTNAME }}
BILLING_PRIVATE_KEY={{ .Env.BILLING_PRIVATE_KEY }}
BILLING_PUBLIC_KEY={{ .Env.BILLING_PUBLIC_KEY }}
BILLING_ENABLED={{ .Env.BILLING_ENABLED }}
DOMAIN={{ .Env.DOMAIN }}
HTTP_PROTOCOL={{ .Env.HTTP_PROTOCOL }}
REALTIME_ROUTE={{ .Env.REALTIME_ROUTE }}
NOTIFICATION_ROUTE={{ .Env.NOTIFICATION_ROUTE }}
DASHBOARD_ROUTE={{ .Env.DASHBOARD_ROUTE }}
DASHBOARD_API_ROUTE={{ .Env.DASHBOARD_API_ROUTE }}
PROBE_API_ROUTE={{ .Env.PROBE_API_ROUTE }}
DATA_INGESTOR_ROUTE={{ .Env.DATA_INGESTOR_ROUTE }}
ACCOUNTS_ROUTE={{ .Env.ACCOUNTS_ROUTE }}
HOME_ROUTE={{ .Env.HOME_ROUTE }}
HELMCHARTS_ROUTE={{ .Env.HELMCHARTS_ROUTE }}
API_REFERENCE_ROUTE={{ .Env.API_REFERENCE_ROUTE }}
IDENTITY_ROUTE={{ .Env.IDENTITY_ROUTE }}
FILE_ROUTE={{ .Env.FILE_ROUTE }}
WORKFLOW_ROUTE={{ .Env.WORKFLOW_ROUTE }}
STATUS_PAGE_ROUTE={{ .Env.STATUS_PAGE_ROUTE }}
IS_SERVER=true
ANALYTICS_KEY={{ .Env.ANALYTICS_KEY }}
ANALYTICS_HOST={{ .Env.ANALYTICS_HOST }}

View File

@ -1,20 +0,0 @@
REALTIME_ROUTE={{ .Env.REALTIME_ROUTE }}
NOTIFICATION_ROUTE={{ .Env.NOTIFICATION_ROUTE }}
DASHBOARD_ROUTE={{ .Env.DASHBOARD_ROUTE }}
DASHBOARD_API_ROUTE={{ .Env.DASHBOARD_API_ROUTE }}
PROBE_API_ROUTE={{ .Env.PROBE_API_ROUTE }}
DATA_INGESTOR_ROUTE={{ .Env.DATA_INGESTOR_ROUTE }}
ACCOUNTS_ROUTE={{ .Env.ACCOUNTS_ROUTE }}
HOME_ROUTE={{ .Env.HOME_ROUTE }}
HELMCHARTS_ROUTE={{ .Env.HELMCHARTS_ROUTE }}
API_REFERENCE_ROUTE={{ .Env.API_REFERENCE_ROUTE }}
IDENTITY_ROUTE={{ .Env.IDENTITY_ROUTE }}
WORKFLOW_ROUTE={{ .Env.WORKFLOW_ROUTE }}
FILE_ROUTE={{ .Env.FILE_ROUTE }}
STATUS_PAGE_ROUTE={{ .Env.STATUS_PAGE_ROUTE }}
IS_SERVER=false
STATUS_PAGE_CNAME_RECORD={{ .Env.STATUS_PAGE_CNAME_RECORD }}
DOMAIN={{ .Env.DOMAIN }}
HTTP_PROTOCOL={{ .Env.HTTP_PROTOCOL }}
ANALYTICS_KEY={{ .Env.ANALYTICS_KEY }}
ANALYTICS_HOST={{ .Env.ANALYTICS_HOST }}

View File

@ -1 +0,0 @@
PORT={{ .Env.DASHBOARD_PORT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.DASHBOARD_API_PORT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.FILE_PORT }}

View File

@ -1,2 +0,0 @@
SMTP_USER={{ .Env.INTERNAL_SMTP_USER }}
SMTP_PASSWORD={{ .Env.INTERNAL_SMTP_PASSWORD }}

View File

View File

@ -1 +0,0 @@
PORT={{ .Env.HOME_PORT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.IDENTITY_PORT }}

View File

@ -1 +0,0 @@
ONEUPTIME_SECRET={{ .Env.ONEUPTIME_SECRET }}

View File

@ -1,3 +0,0 @@
AIRTABLE_API_KEY={{ .Env.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID={{ .Env.AIRTABLE_BASE_ID }}
TOKEN_SECRET={{ .Env.TOKEN_SECRET }}

View File

@ -1 +0,0 @@
PORT={{ .Env.LINK_SHORTNER_PORT }}

View File

@ -1,14 +0,0 @@
PORT={{ .Env.NOTIFICATION_PORT }}
SMTP_USERNAME={{ .Env.SMTP_USERNAME }}
SMTP_PASSWORD={{ .Env.SMTP_PASSWORD }}
SMTP_PORT={{ .Env.SMTP_PORT }}
SMTP_EMAIL={{ .Env.SMTP_EMAIL }}
SMTP_FROM_NAME={{ .Env.SMTP_FROM_NAME }}
SMTP_IS_SECURE={{ .Env.SMTP_IS_SECURE }}
SMTP_HOST={{ .Env.SMTP_HOST }}
SENDGRID_API_KEY={{ .Env.SENDGRID_API_KEY }}
TWILIO_ACCOUNT_SID={{ .Env.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN={{ .Env.TWILIO_AUTH_TOKEN }}
TWILIO_PHONE_NUMBER={{ .Env.TWILIO_PHONE_NUMBER }}
SMS_DEFAULT_COST_IN_CENTS={{ .Env.SMS_DEFAULT_COST_IN_CENTS }}
CALL_DEFAULT_COST_IN_CENTS_PER_MINUTE={{ .Env.CALL_DEFAULT_COST_IN_CENTS_PER_MINUTE }}

View File

@ -1,3 +0,0 @@
POSTGRES_USER={{ .Env.DATABASE_USERNAME }}
POSTGRES_PASSWORD={{ .Env.DATABASE_PASSWORD }}
POSTGRES_DB={{ .Env.DATABASE_NAME }}

3
Postgres/README.md Normal file
View File

@ -0,0 +1,3 @@
# Postgres
This folder is for postgres related files.

View File

@ -1 +0,0 @@
PORT=3500

View File

@ -1 +0,0 @@
PORT={{ .Env.PROBE_PORT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.PROBE_API_PORT }}

View File

@ -1,2 +0,0 @@
ONEUPTIME_SECRET={{ .Env.ONEUPTIME_SECRET }}
PORT={{ .Env.REALTIME_PORT }}

View File

@ -1 +0,0 @@
REDIS_PASSWORD={{ .Env.REDIS_PASSWORD }}

View File

@ -1 +0,0 @@
PORT={{ .Env.STATUS_PAGE_PORT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.TEST_SERVER_PORT }}

View File

@ -1,2 +0,0 @@
PORT={{ .Env.WORKERS_PORT }}
ENVIRONMENT={{ .Env.ENVIRONMENT }}

View File

@ -1 +0,0 @@
PORT={{ .Env.WORKFLOW_PORT }}

View File

@ -206,7 +206,4 @@ for directory_name in $(find . -maxdepth 1 -type d) ; do
if [ -f "$directory_name/Dockerfile.tpl" ]; then
cat $directory_name/Dockerfile.tpl | gomplate > $directory_name/Dockerfile
fi
done
# Convert nginx conf template to nginx
cat ./Nginx/default.tpl.conf | gomplate > ./Nginx/default.conf
done

View File

@ -1,725 +0,0 @@
version: '3.7'
services:
##IMPORTANT:
## This container is an SMTP server used to send emails.
## Setup private, tls_cert and tls_key keys before running this part
haraka:
ports:
- '2525:2525'
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Haraka/Dockerfile
{{ else }}
image: oneuptime/haraka:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Haraka/.env
redis:
image: redis:7.0.3
restart: always
ports:
- '6370:6379'
command: redis-server --requirepass "{{ .Env.REDIS_PASSWORD }}"
env_file:
- ./Redis/.env
clickhouse:
image: clickhouse/clickhouse-server:23.2
restart: always
env_file:
- ./Clickhouse/.env
ports:
- '8123:8123'
- '9000:9000'
- '9440:9440'
- '9009:9009'
volumes:
- clickhouse:/var/lib/clickhouse/
postgres:
image: postgres:latest
restart: always
env_file:
- ./Postgres/.env
ports:
- '5400:5432'
volumes:
- postgres:/var/lib/postgresql/data
notification:
ports:
{{ if eq .Env.ENVIRONMENT "development" }}
- 9111:9229 # Debugging port.
{{ end }}
- 3191:3191
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Notification/Dockerfile
{{ else }}
image: oneuptime/notification:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Notification/.env
depends_on:
- haraka
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Notification:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
accounts:
ports:
- '3003:3003'
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Accounts/Dockerfile
{{ else }}
image: oneuptime/accounts:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonUI/.env
- ./Accounts/.env
depends_on:
- identity
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Accounts:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
dashboard:
ports:
- '3009:3009'
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Dashboard/Dockerfile
{{ else }}
image: oneuptime/dashboard:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonUI/.env
- ./Dashboard/.env
depends_on:
- identity
- accounts
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Dashboard:/usr/src/app
- /usr/src/app/node_modules/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
status-page:
ports:
- '3105:3105' # HTTP UI Port
{{ if eq .Env.ENVIRONMENT "development" }}
- 9764:9229 # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./StatusPage/Dockerfile
{{ else }}
image: oneuptime/status-page:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonUI/.env
- ./StatusPage/.env
depends_on:
- accounts
- dashboard-api
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./StatusPage:/usr/src/app
- /usr/src/app/node_modules/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
dashboard-api:
ports:
- '3002:3002'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9232:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./DashboardAPI/Dockerfile
{{ else }}
image: oneuptime/dashboard-api:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./DashboardAPI/.env
depends_on:
- redis
- postgres
- notification
links:
- redis
- postgres
- notification
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./DashboardAPI:/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
- dashboardApiNodeModules:/usr/src/app/node_modules/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- dashboardApiCommonNodeModules:/usr/src/Common/node_modules/
- dashboardApiCommonUINodeModules:/usr/src/CommonUI/node_modules/
- dashboardApiCommonServerNodeModules:/usr/src/CommonServer/node_modules/
- dashboardApiModelNodeModules:/usr/src/Model/node_modules/
{{ end }}
link-shortner:
ports:
- '3521:3521'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9826:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./LinkShortner/Dockerfile
{{ else }}
image: oneuptime/link-shortner:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./LinkShortner/.env
depends_on:
- redis
- postgres
links:
- redis
- postgres
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./LinkShortner:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
workflow:
ports:
- '3099:3099'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9212:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Workflow/Dockerfile
{{ else }}
image: oneuptime/workflow:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Workflow/.env
depends_on:
- redis
- postgres
- notification
links:
- redis
- postgres
- notification
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Workflow:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
workers:
ports:
- '3452:3452'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9654:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Workers/Dockerfile
{{ else }}
image: oneuptime/workers:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Workers/.env
depends_on:
- postgres
- notification
links:
- postgres
- notification
volumes:
- ./Certs:/usr/src/Certs
{{ if eq .Env.ENVIRONMENT "development" }}
- ./Workers:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
{{ if .Env.GLOBAL_PROBE_1_NAME }}
probe-1:
{{ if eq .Env.ENVIRONMENT "development" }}
ports:
- '9655:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Probe/Dockerfile
{{ else }}
image: oneuptime/probe:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Probe/.env
environment:
- PROBE_NAME={{ .Env.GLOBAL_PROBE_1_NAME }}
- PROBE_DESCRIPTION={{ .Env.GLOBAL_PROBE_1_DESCRIPTION }}
- PROBE_KEY={{ .Env.GLOBAL_PROBE_1_KEY }}
- PROBE_API_URL=http://probe-api:3400
depends_on:
- probe-api
links:
- probe-api
volumes:
- ./Certs:/usr/src/Certs
{{ if eq .Env.ENVIRONMENT "development" }}
- ./Probe:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
{{ end }}
{{ if .Env.GLOBAL_PROBE_2_NAME }}
probe-2:
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Probe/Dockerfile
{{ else }}
image: oneuptime/probe:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Probe/.env
environment:
- PROBE_NAME={{ .Env.GLOBAL_PROBE_2_NAME }}
- PROBE_DESCRIPTION={{ .Env.GLOBAL_PROBE_2_DESCRIPTION }}
- PROBE_KEY={{ .Env.GLOBAL_PROBE_2_KEY }}
- PROBE_API_URL=http://probe-api:3400
depends_on:
- probe-api
links:
- probe-api
volumes:
- ./Certs:/usr/src/Certs
{{ if eq .Env.ENVIRONMENT "development" }}
- ./Probe:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
{{ end }}
identity:
ports:
- '3087:3087'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9132:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Identity/Dockerfile
{{ else }}
image: oneuptime/identity:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Identity/.env
depends_on:
- redis
- postgres
- notification
links:
- redis
- postgres
- notification
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Identity:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
probe-api:
ports:
- '3400:3400'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9932:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./ProbeAPI/Dockerfile
{{ else }}
image: oneuptime/probe-api:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./ProbeAPI/.env
depends_on:
- redis
- postgres
- notification
links:
- redis
- postgres
- notification
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./ProbeAPI:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
file:
ports:
- '3125:3125'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9012:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./File/Dockerfile
{{ else }}
image: oneuptime/file:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./File/.env
depends_on:
- postgres
links:
- postgres
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./File:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
home:
ports:
- '1444:1444'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9235:9229' # Debugging port.
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./Home/.env
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./Home/Dockerfile
{{ else }}
image: oneuptime/home:{{ .Env.APP_TAG }}
{{ end }}
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./Home:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
api-reference:
ports:
- '1445:1445'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9178:9229' # Debugging port.
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./ApiReference/.env
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./ApiReference/Dockerfile
{{ else }}
image: oneuptime/api-reference:{{ .Env.APP_TAG }}
{{ end }}
{{ if eq .Env.ENVIRONMENT "development" }}
volumes:
- ./ApiReference:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "test") }}
test-server:
ports:
- '3800:3800'
{{ if eq .Env.ENVIRONMENT "development" }}
- '9141:9229' # Debugging port.
{{ end }}
{{ if or (eq .Env.ENVIRONMENT "development") (eq .Env.ENVIRONMENT "ci") }}
build:
network: host
context: .
dockerfile: ./TestServer/Dockerfile
{{ else }}
image: oneuptime/test-server:{{ .Env.APP_TAG }}
{{ end }}
restart: always
env_file:
- ./Common/.env
- ./CommonServer/.env
- ./TestServer/.env
volumes:
- ./TestServer:/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/
- ./Common:/usr/src/Common
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
{{ end }}
nginx:
depends_on:
- identity
- accounts
- dashboard-api
- dashboard
- home
- notification
restart: always
image: nginx:1.23.3-alpine
ports:
- '80:80'
- '443:443'
volumes:
- ./Nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./Certs:/etc/nginx/certs
volumes:
postgres:
clickhouse:
{{ if eq .Env.ENVIRONMENT "development" }}
# Add volumes to skip node_modules.
dashboardApiNodeModules:
dashboardApiCommonNodeModules:
dashboardApiCommonUINodeModules:
dashboardApiCommonServerNodeModules:
dashboardApiModelNodeModules:
{{ end }}