-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (53 loc) · 2.16 KB
/
docker-compose.yaml
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
version: "3.8"
services:
localstack-baas:
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-baas}"
image: localstack/localstack
ports:
# - "127.0.0.1:4510-4559:4510-4559" # external services port range
- "4566:4566" # LocalStack Gateway
- "4572:4572" # S3 Port
- "4574:4574" # Lambda Port
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-0}
- SERVICES=s3,lambda,ssm
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
localstack-baas-init:
image: amazon/aws-cli
depends_on:
- localstack-baas
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=eu-central-1
volumes:
- "./s3-hook-lambda/src/test/resources:/var/resources"
entrypoint: /bin/sh -c
command: >
"
aws --endpoint-url=http://localstack-baas:4566 s3api create-bucket --bucket baas --region eu-central-1 --create-bucket-configuration LocationConstraint=eu-central-1
aws --endpoint-url=http://localstack-baas:4566 s3api put-object --bucket baas --region eu-central-1 --key test-request.json --body /var/resources/requests/request.json
aws --endpoint-url=http://localstack-baas:4566 ssm put-parameter --name /baas/github/org --value wsztajerowski --type String
aws --endpoint-url=http://localstack-baas:4566 ssm put-parameter --name /baas/github/repo --value benchmark-as-a-service --type String
aws --endpoint-url=http://localstack-baas:4566 ssm put-parameter --name /baas/github/workflowid --value 99963199 --type String
aws --endpoint-url=http://localstack-baas:4566 ssm put-parameter --name /baas/github/token --value ${GITHUB_TOKEN} --type SecureString
"
mongo:
container_name: mongodb
image: mongo
restart: always
ports:
- 27017:27017
mongo-express:
container_name: mongo-express
image: mongo-express
restart: always
ports:
- 8081:8081
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/