oneuptime/docker-compose.dev.yml

410 lines
13 KiB
YAML
Raw Normal View History

2021-06-21 20:42:05 +00:00
version: '3.7'
services:
2021-06-21 21:31:43 +00:00
##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'
build:
context: ./haraka
args:
PORT: '2525'
environment:
- SMTP_USER=user@oneuptime.com
- SMTP_PASSWORD=oneuptime
2021-06-21 21:31:43 +00:00
- DOMAIN="${DOMAIN}"
- DKIM_PRIVATE_KEY="${DKIM_PRIVATE_KEY}"
- TLS_CERT="${TLS_CERT}"
- TLS_KEY="${TLS_KEY}"
2021-06-21 20:42:05 +00:00
mongo:
image: mongo:4.2.3
ports:
- '27017:27017'
volumes:
- mongodata:/data/db
saml:
image: kenchan0130/simplesamlphp
ports:
- 9876:8080
- 8443:8443
environment:
- SIMPLESAMLPHP_SP_ENTITY_ID=hackerbay.io
- SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:3002/api/user/sso/callback
- SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-logout.php/test-sp
volumes:
2021-06-21 21:31:43 +00:00
- ./saml/users.php:/var/www/simplesamlphp/config/authsources.php
2021-06-21 20:42:05 +00:00
redis:
image: redis:5.0.7
ports:
- '6390:6379'
command: redis-server
2021-06-21 21:08:35 +00:00
accounts:
ports:
- '3003:3003'
build:
context: ./accounts
dockerfile: ./Dockerfile.dev
env_file:
- ./accounts/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-06-21 21:31:43 +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
- /usr/src/app/node_modules/
2021-07-30 12:05:31 +00:00
data-ingestor:
2021-07-20 08:11:16 +00:00
ports:
- '3200:3200'
- '9239:9229' # Debugging port.
build:
context: ./data-ingestor
dockerfile: ./Dockerfile.dev
env_file:
- ./data-ingestor/.env
environment:
- SERVER_URL=http://backend:3002
- CLUSTER_KEY=test
- SCRIPT_RUNNER_URL=http://script-runner:3009
- MONGO_URL=mongodb://mongo:27017/fyipedb
2021-07-27 16:07:25 +00:00
- REALTIME_URL=http://realtime:3300
depends_on:
- mongo
- script-runner
- backend
2021-07-27 16:07:25 +00:00
- realtime
2021-07-20 08:11:16 +00:00
volumes:
2021-07-25 14:16:41 +00:00
- ./data-ingestor:/usr/src/app
2021-07-20 08:11:16 +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/
realtime:
ports:
- '3300:3300'
- '9240:9229' # Debugging port.
build:
context: ./realtime
dockerfile: ./Dockerfile.dev
env_file:
- ./realtime/.env
environment:
- CLUSTER_KEY=test
- PORT=3300
volumes:
- ./realtime:/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
2022-01-18 16:38:06 +00:00
fetch-resources:
ports:
- '3400:3400'
build:
context: ./fetch-resources
dockerfile: ./Dockerfile.dev
env_file:
- ./fetch-resources/.env
environment:
- CLUSTER_KEY=test
- PORT=3400
- MONGO_URL=mongodb://mongo:27017/fyipedb
- REALTIME_URL=http://realtime:3300
2021-06-21 21:31:43 +00:00
# There can only be one probe in developer docker compose.
2021-06-21 21:51:01 +00:00
probe:
2021-06-21 21:31:43 +00:00
ports:
2021-06-22 09:32:09 +00:00
- '3008:3008'
2021-06-21 21:31:43 +00:00
- '9238:9229' # Debugging port.
build:
context: ./probe
dockerfile: ./Dockerfile.dev
env_file:
- ./probe/.env
environment:
2021-06-22 12:26:24 +00:00
- PORT=3008
2021-06-21 21:31:43 +00:00
- SERVER_URL=http://backend:3002
- DATA_INGESTOR_URL=http://data-ingestor:3200
2021-06-21 21:31:43 +00:00
- PROBE_NAME=Probe 1
- PROBE_KEY=test-key
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2022-01-18 16:38:06 +00:00
- FETCH_RESOURCES_URL=http://fetch-resources:3400
2021-06-21 21:31:43 +00:00
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/
2021-06-24 20:33:37 +00:00
- /usr/src/app/greenlock.d/
2021-06-21 21:31:43 +00:00
api-docs:
ports:
- '1445:1445'
build:
context: ./api-docs
dockerfile: ./Dockerfile.dev
env_file:
- ./api-docs/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
volumes:
- ./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/
init-script:
build:
context: ./init-script
dockerfile: ./Dockerfile.dev
ports:
- '1447:1447'
- '9237:9229' # Debugging port.
env_file:
- ./init-script/.env
environment:
- MONGO_URL=mongodb://mongo:27017/fyipedb
2021-06-21 21:31:43 +00:00
- REDIS_HOST=redis
- REDIS_PORT=6379
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-06-22 09:32:09 +00:00
- NODE_ENV=development
2021-06-21 21:31:43 +00:00
depends_on:
- mongo
- redis
volumes:
- ./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/
script-runner:
ports:
- '3009:3009'
- '9236:9229' # Debugging port.
build:
context: ./script-runner
dockerfile: ./Dockerfile.dev
env_file:
- ./script-runner/.env
2021-06-21 21:31:43 +00:00
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-06-26 17:34:10 +00:00
- SERVER_URL=http://backend:3002
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2021-06-21 21:31:43 +00:00
volumes:
- ./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/
2021-06-21 21:08:35 +00:00
2021-06-21 20:42:05 +00:00
backend:
ports:
- '3002:3002' # Service Port.
- '9232:9229' # Debugging port.
build:
context: ./backend
dockerfile: ./Dockerfile.dev
env_file:
- ./backend/.env
environment:
- MONGO_URL=mongodb://mongo:27017/fyipedb
2021-06-21 20:42:05 +00:00
- REDIS_HOST=redis
- REDIS_PORT=6379
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-06-23 20:55:13 +00:00
- SCRIPT_RUNNER_URL=http://script-runner:3009
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2021-09-21 17:27:51 +00:00
- REALTIME_URL=http://realtime:3300
2021-06-21 20:42:05 +00:00
depends_on:
- mongo
- redis
volumes:
- ./backend:/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/
2021-06-21 22:07:40 +00:00
2021-06-21 20:42:05 +00:00
# Exclude greenlock as well.
- /usr/src/app/greenlock.d/
2021-06-21 21:31:43 +00:00
dashboard:
ports:
- '3000:3000'
build:
context: ./dashboard
dockerfile: ./Dockerfile.dev
env_file:
- ./dashboard/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
volumes:
- ./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/
home:
ports:
- '1444:1444'
- '9235:9229' # Debugging port.
env_file:
- ./home/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
build:
context: ./home
dockerfile: ./Dockerfile.dev
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/
status-page:
ports:
- '3006:3006'
build:
context: ./status-page
dockerfile: ./Dockerfile.dev
env_file:
- ./status-page/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
volumes:
- ./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/
admin-dashboard:
ports:
- '3100:3100'
build:
context: ./admin-dashboard
dockerfile: ./Dockerfile.dev
env_file:
- ./admin-dashboard/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
volumes:
- ./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/
http-test-server:
ports:
- '3010:3010'
- '9234:9229' # Debugging port.
env_file:
- ./http-test-server/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
build:
context: ./http-test-server
dockerfile: ./Dockerfile.dev
volumes:
- ./http-test-server:/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/
licensing:
ports:
- '3004:3004'
- '9233:9229' # Debugging port.
env_file:
- ./licensing/.env
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
build:
context: ./licensing
dockerfile: ./Dockerfile.dev
volumes:
- ./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/
2021-06-25 20:40:24 +00:00
application-scanner:
ports:
- '3005:3005'
2021-09-21 19:06:52 +00:00
- '9240:9229' # Debugging port.
2021-06-25 20:40:24 +00:00
build:
context: ./application-scanner
dockerfile: ./Dockerfile.dev
env_file:
- ./application-scanner/.env
environment:
- PORT=3005
- SERVER_URL=http://backend:3002
- APPLICATION_SCANNER_NAME=US
- APPPLICATION_SCANNER_KEY=test-key
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2021-06-25 20:40:24 +00:00
volumes:
- ./application-scanner:/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/
2021-07-09 13:00:50 +00:00
container-scanner:
ports:
- '3055:3055'
- '9242:9229' # Debugging port.
build:
context: ./container-scanner
dockerfile: ./Dockerfile.dev
env_file:
- ./container-scanner/.env
environment:
- PORT=3055
- SERVER_URL=http://backend:3002
- CONTAINER_SCANNER_NAME=US
- CONTAINER_SCANNER_KEY=test-key
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2021-07-09 13:00:50 +00:00
volumes:
- ./container-scanner:/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/
2021-06-30 11:56:08 +00:00
lighthouse-runner:
ports:
2021-07-01 13:28:17 +00:00
- '3015:3015'
2021-06-30 11:56:08 +00:00
- '9241:9229' # Debugging port.
build:
context: ./lighthouse-runner
dockerfile: ./Dockerfile.dev
env_file:
- ./lighthouse-runner/.env
environment:
2021-07-01 13:28:17 +00:00
- PORT=3015
2021-06-30 11:56:08 +00:00
- SERVER_URL=http://backend:3002
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
2021-07-12 14:16:38 +00:00
- CLUSTER_KEY=test
2021-06-30 11:56:08 +00:00
volumes:
- ./lighthouse-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/
nginx:
depends_on:
- mongo
- backend
- home
- dashboard
- accounts
- admin-dashboard
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
2021-10-07 11:02:42 +00:00
- '80:80'
- '443:443'
2021-06-21 20:42:05 +00:00
volumes:
mongodata: