oneuptime/docker-compose.dev.yml

444 lines
15 KiB
YAML
Raw Normal View History

2023-07-17 12:28:29 +00:00
version: '3.7'
services:
2023-08-01 15:41:21 +00:00
2023-07-17 12:28:29 +00:00
haraka:
extends:
file: ./docker-compose.base.yml
service: haraka
build:
network: host
context: .
dockerfile: ./Haraka/Dockerfile
redis:
extends:
file: ./docker-compose.base.yml
service: redis
clickhouse:
2023-08-22 08:37:39 +00:00
ports:
- '9034:9000'
- '8189:8123'
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: clickhouse
postgres:
2023-07-19 10:41:32 +00:00
ports:
- '5400:5432'
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: postgres
notification:
extends:
file: ./docker-compose.base.yml
service: notification
2023-07-17 13:30:31 +00:00
ports:
- 9111:9229 # Debugging port.
2023-07-19 13:51:39 +00:00
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/
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./Notification/Dockerfile
2023-10-09 18:21:38 +00:00
otel-collector:
extends:
file: ./docker-compose.base.yml
service: otel-collector
build:
network: host
context: .
dockerfile: ./OTelCollector/Dockerfile
2023-07-17 12:28:29 +00:00
accounts:
2023-07-21 12:23:34 +00:00
ports:
- '${ACCOUNTS_PORT}:${ACCOUNTS_PORT}' # ws port for webpack
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: accounts
2023-07-19 13:51:39 +00:00
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
2023-07-22 16:45:12 +00:00
- /usr/src/app/dev-env
2023-07-19 13:51:39 +00:00
- /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/
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./Accounts/Dockerfile
dashboard:
2023-07-21 12:23:34 +00:00
ports:
- '${DASHBOARD_PORT}:${DASHBOARD_PORT}' # ws port for webpack
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: dashboard
2023-07-19 13:51:39 +00:00
volumes:
2023-07-19 18:36:26 +00:00
- ./Dashboard:/usr/src/app
2023-07-19 13:51:39 +00:00
# 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
2023-07-22 16:45:12 +00:00
- /usr/src/app/dev-env
2023-07-19 13:51:39 +00:00
- /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/
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./Dashboard/Dockerfile
2023-08-25 14:51:26 +00:00
admin-dashboard:
ports:
- '${ADMIN_DASHBOARD_PORT}:${ADMIN_DASHBOARD_PORT}' # ws port for webpack
extends:
file: ./docker-compose.base.yml
service: admin-dashboard
volumes:
- ./AdminDashboard:/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/dev-env
- /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/
build:
network: host
context: .
dockerfile: ./AdminDashboard/Dockerfile
2023-07-17 12:28:29 +00:00
status-page:
2023-07-21 12:23:34 +00:00
ports:
- '${STATUS_PAGE_PORT}:${STATUS_PAGE_PORT}' # ws port for webpack
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: status-page
2023-07-19 13:51:39 +00:00
volumes:
- ./StatusPage:/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
2023-07-22 16:45:12 +00:00
- /usr/src/app/dev-env
2023-07-19 13:51:39 +00:00
- /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/
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./StatusPage/Dockerfile
2023-08-02 17:26:56 +00:00
test-server:
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/
extends:
file: ./docker-compose.base.yml
service: test-server
ports:
- '9141:9229' # Debugging port.
- '3800:3800'
build:
network: host
context: .
dockerfile: ./TestServer/Dockerfile
2023-07-17 12:28:29 +00:00
dashboard-api:
2023-07-19 13:51:39 +00:00
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
- /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/
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: dashboard-api
2023-07-17 16:38:15 +00:00
ports:
- '9232:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./DashboardAPI/Dockerfile
workflow:
2023-07-19 13:51:39 +00:00
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/
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: workflow
2023-07-17 16:38:15 +00:00
ports:
- '9212:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./Workflow/Dockerfile
workers:
2023-07-19 13:51:39 +00:00
volumes:
- ./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/
2023-07-17 16:38:15 +00:00
ports:
- '9654:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: workers
2023-07-19 14:10:47 +00:00
build:
network: host
context: .
dockerfile: ./Workers/Dockerfile
2023-07-17 12:28:29 +00:00
2023-07-19 13:51:39 +00:00
probe-1:
volumes:
- ./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/
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
2023-07-19 11:59:10 +00:00
service: probe-1
2023-07-17 16:38:15 +00:00
ports:
- '9655:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
dockerfile: ./Probe/Dockerfile
identity:
2023-07-17 16:38:15 +00:00
ports:
- '9132:9229' # Debugging port.
2023-07-19 13:51:39 +00:00
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/
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: identity
build:
network: host
context: .
dockerfile: ./Identity/Dockerfile
2023-10-09 17:54:23 +00:00
ingestor:
2023-07-19 13:51:39 +00:00
volumes:
2023-10-09 17:54:23 +00:00
- ./Ingestor:/usr/src/app
2023-07-19 13:51:39 +00:00
# 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/
2023-07-17 16:38:15 +00:00
ports:
- '9932:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
2023-10-09 17:54:23 +00:00
service: ingestor
2023-07-17 12:28:29 +00:00
build:
network: host
context: .
2023-10-09 17:54:23 +00:00
dockerfile: ./Ingestor/Dockerfile
2023-07-17 12:28:29 +00:00
file:
2023-07-19 13:51:39 +00:00
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/
2023-07-17 16:38:15 +00:00
ports:
- '9012:9229' # Debugging port.
extends:
2023-07-17 12:28:29 +00:00
file: ./docker-compose.base.yml
service: file
2023-07-19 14:10:47 +00:00
build:
network: host
context: .
dockerfile: ./File/Dockerfile
2023-07-17 12:28:29 +00:00
home:
2023-07-19 13:51:39 +00:00
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/
2023-07-17 16:38:15 +00:00
ports:
- '9235:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: home
build:
network: host
context: .
dockerfile: ./Home/Dockerfile
api-reference:
2023-07-19 13:51:39 +00:00
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/
2023-07-17 16:38:15 +00:00
ports:
- '9178:9229' # Debugging port.
2023-07-17 12:28:29 +00:00
extends:
file: ./docker-compose.base.yml
service: api-reference
build:
network: host
context: .
dockerfile: ./ApiReference/Dockerfile
2023-09-13 07:00:24 +00:00
ingress:
2023-07-19 19:02:14 +00:00
build:
network: host
context: .
dockerfile: ./Nginx/Dockerfile
extends:
2023-07-17 12:28:29 +00:00
file: ./docker-compose.base.yml
2023-09-13 07:00:24 +00:00
service: ingress
2023-07-19 11:42:33 +00:00
volumes:
postgres:
clickhouse:
2023-07-19 11:42:33 +00:00
networks:
oneuptime:
driver: bridge