This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.demo.yml
75 lines (73 loc) · 2.09 KB
/
docker-compose.demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# https://docs.docker.com/cloud/ecs-integration/
version: '3.8'
services:
substrate:
image: prosopo/substrate:demo-v1.0.0
ports:
- "9615:9615"
- "9944:9944"
- "9933:9933"
deploy:
# replicas: 1
resources:
limits:
cpus: '1'
memory: 512M
database:
image: mongo:5.0.4
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=$MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_DATABASE=prosopo
deploy:
replicas: 1
resources:
limits:
cpus: '1'
memory: 512M
provider:
image: prosopo/provider:1.0.3
environment:
- NODE_ENV=production
- DAPP_CONTRACT_ADDRESS=5Go2hCf1WHzKqt1HGCUwhKfUS85477HUHgvaKkMJRYBfyiUP
- DATABASE_PASSWORD=$MONGO_INITDB_ROOT_PASSWORD
ports:
- "3000:3000"
depends_on:
- substrate
- database
deploy:
# replicas: 1
resources:
limits:
cpus: '1'
memory: 512M
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html
# secrets:
# env_demo:
# name: "arn:aws:secretsmanager:eu-west-1:333775583992:secret:env.demo-xS1Weo"
# external: true
x-aws-vpc: vpc-0d475f14c1385d682
x-aws-loadbalancer: arn:aws:elasticloadbalancing:eu-west-1:333775583992:loadbalancer/net/demo-net/c964b999910c2e7d
x-aws-cloudformation:
Resources:
SubstrateTCP9944Listener:
Properties:
Certificates:
- CertificateArn: "arn:aws:acm:eu-west-1:333775583992:certificate/4566efed-fb66-498b-82d0-73be97a42191"
Protocol: TLS
Port: 9944
SubstrateTCP9933Listener:
Properties:
Certificates:
- CertificateArn: "arn:aws:acm:eu-west-1:333775583992:certificate/4566efed-fb66-498b-82d0-73be97a42191"
Protocol: TLS
Port: 9933
ProviderTCP3000Listener:
Properties:
Certificates:
- CertificateArn: "arn:aws:acm:eu-west-1:333775583992:certificate/4566efed-fb66-498b-82d0-73be97a42191"
Protocol: TLS
Port: 3000