To deploy to aws, connect to our aws vpn then run: tools/deploy-docker-compose.sh The deploy script does the following: * builds sparkd * builds datastream apps (pubsub, md-publisher, and webapp) * uploads the build to aws * bounces all services (sparkd, pubsub, md-publisher, and webapp) Note: the name 'md-publisher' refers to DataStreamPublisher w/ MarketData configuration
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
services:
|
|
sparkd:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: ./sparkd
|
|
command: [ "./sparkd", "run" ]
|
|
ports: [ "8000:8000", "8001:8001", "8002:8002" ]
|
|
|
|
pubsub:
|
|
build:
|
|
dockerfile: pubsub.Dockerfile
|
|
context: ./DataStream
|
|
command: [ "./PubSubServer" ]
|
|
environment:
|
|
- DOTNET_ENVIRONMENT=Production
|
|
ports:
|
|
- 22019:22019
|
|
|
|
md-publisher:
|
|
build:
|
|
dockerfile: md-publisher.Dockerfile
|
|
context: ./DataStream
|
|
depends_on:
|
|
- pubsub
|
|
- sparkd
|
|
command:
|
|
[
|
|
"dockerize",
|
|
"-wait",
|
|
"tcp://pubsub:22019",
|
|
"-wait",
|
|
"tcp://sparkd:8000",
|
|
"-timeout",
|
|
"10s",
|
|
"./DataStreamPublisher"
|
|
]
|
|
environment:
|
|
- DOTNET_ENVIRONMENT=MarketData
|
|
|
|
webapp:
|
|
ports:
|
|
- 8080:8080
|
|
- 8443:8443
|
|
build:
|
|
dockerfile: webapp.Dockerfile
|
|
context: ./DataStream
|
|
command: [ "./Bts.DataStreamWebApp.Server" ]
|
|
environment:
|
|
- ASPNETCORE_HTTP_PORT=8080
|
|
- ASPNETCORE_HTTPS_PORT=8443
|
|
- ASPNETCORE_ENVIRONMENT=Staging
|