generated from LBHackney-IT/lbh-base-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.39 KB
/
docker-compose.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
services:
api-auth-verify-token:
image: api-auth-token-generator
build:
context: ApiAuthVerifyToken/
dockerfile: ./Dockerfile
ports:
- 3000:3000
environment:
- CONNECTION_STRING=Host=dev-database;Port=5432;Database=auth_token_generator_db;Username=postgres;Password=mypassword
links:
- dev-database
dev-database:
env_file:
- database.env
image: postgres:12
volumes:
- ./database:/docker-entrypoint-initdb.d
api-auth-verify-token-test:
image: api-auth-token-generator-test
build:
context: .
dockerfile: ApiAuthVerifyToken.Tests/Dockerfile
links:
- test-database
- dynamodb-database
test-database:
image: test-database
build:
context: .
dockerfile: database/Dockerfile
ports:
- 5432:5432
env_file:
- database.env
dynamodb-database:
image: amazon/dynamodb-local
command: "-jar DynamoDBLocal.jar -sharedDb" # Expose the shared database
ports:
- 8000:8000
# DynamoDB Admin UI for inspecting the local DynamoDB
dynamodb-admin:
image: aaronshaf/dynamodb-admin
container_name: dynamodb-admin
ports:
- "8001:8001"
environment:
DYNAMO_ENDPOINT: "http://dynamodb-database:8000"
AWS_REGION: "eu-west-2"
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
depends_on:
- dynamodb-database