120 lines
2.9 KiB
YAML
120 lines
2.9 KiB
YAML
|
x-semona-depends-on: &semona-depends-on
|
||
|
- db
|
||
|
- redis
|
||
|
- artemis
|
||
|
- emqx
|
||
|
|
||
|
version: '3.1'
|
||
|
|
||
|
services:
|
||
|
emqx:
|
||
|
restart: always
|
||
|
image: emqx:4.3
|
||
|
container_name: emqx
|
||
|
environment:
|
||
|
EMQX_MQTT__MAX_PACKET_SIZE: "2MB"
|
||
|
EMQX_ALLOW__ANONYMOUS: "true"
|
||
|
ports:
|
||
|
- ${MQTT_PORT}:1883
|
||
|
- ${MQTT_MNG}:18083
|
||
|
|
||
|
redis:
|
||
|
image: redis:6
|
||
|
container_name: dbmemory
|
||
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- ./docker/redis:/data
|
||
|
- ./docker/redis:/usr/local/etc/redis
|
||
|
db:
|
||
|
image: postgis/postgis:14-3.4
|
||
|
restart: unless-stopped
|
||
|
container_name: semona_db
|
||
|
environment:
|
||
|
POSTGRES_DB: semdb
|
||
|
POSTGRES_PASSWORD: postgres
|
||
|
volumes:
|
||
|
- ./docker/db_home:/var/lib/postgresql/data
|
||
|
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||
|
|
||
|
artemis:
|
||
|
image: insparkplatform/apache-artemis
|
||
|
restart: unless-stopped
|
||
|
container_name: jmsserver
|
||
|
volumes:
|
||
|
- ./docker/artemis-etc:/var/lib/artemis-instance/etc-override
|
||
|
|
||
|
semona-init:
|
||
|
image: insparkplatform/semona-migrator
|
||
|
container_name: migrator
|
||
|
env_file: ./docker/.env
|
||
|
depends_on: *semona-depends-on
|
||
|
volumes:
|
||
|
- ./docker/docker-entrypoint.d:/docker-entrypoint.d
|
||
|
|
||
|
semona-engine:
|
||
|
image: insparkplatform/semona-engine
|
||
|
container_name: engine
|
||
|
env_file: ./docker/.env
|
||
|
ports:
|
||
|
- 9810:8746
|
||
|
depends_on:
|
||
|
semona-init:
|
||
|
condition: service_completed_successfully
|
||
|
volumes:
|
||
|
- ./inspark-license.lic:/opt/sem-engine/inspark-license.lic
|
||
|
|
||
|
semona-periodic:
|
||
|
image: insparkplatform/semona-periodic
|
||
|
container_name: periodic
|
||
|
env_file: ./docker/.env
|
||
|
ports:
|
||
|
- 9811:8080
|
||
|
depends_on:
|
||
|
semona-init:
|
||
|
condition: service_completed_successfully
|
||
|
|
||
|
semona-restservices:
|
||
|
image: insparkplatform/semona-webservices
|
||
|
container_name: restservices
|
||
|
env_file: ./docker/.env
|
||
|
ports:
|
||
|
- 9812:8080
|
||
|
depends_on:
|
||
|
semona-init:
|
||
|
condition: service_completed_successfully
|
||
|
volumes:
|
||
|
- ./docker/inspark-files:/files
|
||
|
- ./inspark-license.lic:/opt/sem-restservices/inspark-license.lic
|
||
|
|
||
|
semux:
|
||
|
restart: always
|
||
|
image: insparkplatform/semux
|
||
|
container_name: semux
|
||
|
env_file: ./docker/.env
|
||
|
environment:
|
||
|
HTTP_PORT: $HTTP_PORT
|
||
|
ports:
|
||
|
- ${HTTP_PORT}:80
|
||
|
volumes:
|
||
|
- ./docker/proxy-semona/default.conf.template:/etc/nginx/conf.d/default.conf
|
||
|
- ./docker/proxy-semona/semona-cors.conf:/etc/nginx/semona-cors.conf
|
||
|
|
||
|
handler:
|
||
|
restart: always
|
||
|
image: insparkplatform/semona-handler
|
||
|
container_name: handler
|
||
|
env_file: ./docker/.env
|
||
|
depends_on:
|
||
|
semona-init:
|
||
|
condition: service_completed_successfully
|
||
|
|
||
|
volumes:
|
||
|
semona_home:
|
||
|
external: false
|
||
|
db_home:
|
||
|
external: false
|
||
|
redis:
|
||
|
external: false
|
||
|
inspark-files:
|