-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.25 KB
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
version: '3.9'
services:
api:
build:
context: .
network: "host"
ports:
- "4000:4000"
volumes:
- "./migrations:/usr/app/migrations"
- "./src:/usr/app/src"
- "./serverless.ts:/usr/app/serverless.ts"
- "./tsconfig.build.json:/usr/app/tsconfig.build.json"
- "./tsconfig.json:/usr/app/tsconfig.json"
- "./tsconfig.paths.json:/usr/app/tsconfig.paths.json"
depends_on:
dynamodb-local:
condition: service_healthy
environment:
DYNAMO_ENDPOINT: http://dynamodb-local:8000
AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE'
AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY'
REGION: 'eu-west-1'
dynamodb-admin:
image: aaronshaf/dynamodb-admin
tty: true
ports:
- "8001:8001"
depends_on:
dynamodb-local:
condition: service_healthy
environment:
DYNAMO_ENDPOINT: http://dynamodb-local:8000
dynamodb-local:
image: amazon/dynamodb-local:latest
working_dir: /home/dynamodblocal
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
ports:
- "8000:8000"
volumes:
- "./docker/dynamodb:/home/dynamodblocal/data"
healthcheck:
test: "curl http://localhost:8000"
interval: 10s
timeout: 5s
retries: 5