102 lines
2.4 KiB
YAML
102 lines
2.4 KiB
YAML
name: hlaeja-development
|
|
|
|
networks:
|
|
develop:
|
|
name: develop
|
|
|
|
volumes:
|
|
cassandra:
|
|
influx-config:
|
|
influx-data:
|
|
postgres:
|
|
|
|
services:
|
|
|
|
device-data:
|
|
image: hlaeja-device-data:0.1.0-SNAPSHOT
|
|
container_name: DeviceData
|
|
restart: unless-stopped
|
|
environment:
|
|
SPRING_PROFILES_ACTIVE: docker
|
|
INFLUXDB_TOKEN: influxdbToken==
|
|
networks:
|
|
- develop
|
|
ports:
|
|
- "9020:8080"
|
|
|
|
device-registry:
|
|
image: hlaeja-device-registry:0.1.0-SNAPSHOT
|
|
container_name: DeviceRegistry
|
|
restart: unless-stopped
|
|
environment:
|
|
SPRING_PROFILES_ACTIVE: docker
|
|
networks:
|
|
- develop
|
|
ports:
|
|
- "9010:8080"
|
|
# # mount a local `identity_private_key.pem` into the container.
|
|
# volumes:
|
|
# - ./keys/identity_private_key.pem:/app/resources/keys/private_key.pem
|
|
|
|
device-api:
|
|
image: hlaeja-device-api:0.1.0-SNAPSHOT
|
|
container_name: DeviceApi
|
|
restart: unless-stopped
|
|
environment:
|
|
SPRING_PROFILES_ACTIVE: docker
|
|
networks:
|
|
- develop
|
|
ports:
|
|
- "9000:8443"
|
|
# # mount a local `identity_public_key.pem` into the container.
|
|
# volumes:
|
|
# - ./keys/identity_public_key.pem:/app/resources/cert/public_key.pem
|
|
# - ./keys/device_api_keystore.p12:/app/resources/cert/keystore.p12
|
|
|
|
influxdb:
|
|
image: influxdb:2.7.10-alpine
|
|
container_name: InfluxDB
|
|
restart: unless-stopped
|
|
environment:
|
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
|
DOCKER_INFLUXDB_INIT_USERNAME: influx
|
|
DOCKER_INFLUXDB_INIT_PASSWORD: password
|
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: influxdbToken==
|
|
DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd
|
|
DOCKER_INFLUXDB_INIT_BUCKET: device-data
|
|
networks:
|
|
- develop
|
|
ports:
|
|
- "8086:8086"
|
|
volumes:
|
|
- influx-data:/var/lib/influxdb2
|
|
- influx-config:/etc/influxdb2
|
|
|
|
postgres:
|
|
image: postgres:17.1-alpine
|
|
container_name: PostgreSQL
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD : password
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- develop
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
cassandra:
|
|
image: cassandra:5.0.2
|
|
container_name: Cassandra
|
|
restart: unless-stopped
|
|
environment:
|
|
CASSANDRA_USER: cassandra
|
|
CASSANDRA_PASSWORD: password
|
|
networks:
|
|
- develop
|
|
ports:
|
|
- "9042:9042"
|
|
volumes:
|
|
- cassandra:/var/lib/cassandra
|