-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
60 lines (58 loc) · 2.19 KB
/
docker-compose.local.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
# docker-compose.local.yml for Local development
services:
fragments:
depends_on:
- minio
- dynamodb-local
# Specify container name
container_name: fragments
init: true
build: .
environment:
# Our API will be running on http://localhost:8080
- API_URL=http://localhost:8080
# Use Basic Auth (for running tests, CI)
- HTPASSWD_FILE=tests/.htpasswd
# Use the LOG_LEVEL set in the host environment, or default to debug
- LOG_LEVEL=${LOG_LEVEL:-debug}
# AWS credentials to use, default to "test_local"
- AWS_ACCESS_KEY_ID=test_local
- AWS_SECRET_ACCESS_KEY=test_local_pass
- AWS_REGION=us-east-1
# Use minio as our S3 endpoint
- AWS_S3_ENDPOINT_URL=http://minio:9000
- AWS_S3_BUCKET_NAME=fragments-local-bucket-development
# Use dynamodb-local for DynamoDB endpoint
# Use the DynamoDB local endpoint vs. AWS for DynamoDB AWS SDK clients.
- AWS_DYNAMODB_ENDPOINT_URL=http://dynamodb-local:8000
- AWS_DYNAMODB_TABLE_NAME=fragments
ports:
- '8080:8080'
minio:
image: minio/minio
# Run the server with Web Console on 9001, and use /data for data
command: server --console-address ":9001" /data
ports:
# The minio API endpoint
- '9000:9000'
# The minio web console endpoint
- '9001:9001'
environment:
# See https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#environment-variables
# Root user (Access Key, typically a long, random string)
- MINIO_ROOT_USER=test_local
# Root user's password (Secret Key, typically a long, random string)
- MINIO_ROOT_PASSWORD=test_local_pass
volumes:
# Use what's in `./minio/data` as the storage volume
# NOTE: add this to your .gitignore
- ./minio/data:/data
# DynamoDB Local, see: https://hub.docker.com/r/amazon/dynamodb-local
dynamodb-local:
image: amazon/dynamodb-local
ports:
# Default port is 8000
- '8000:8000'
# Run the database in memory, see:
# https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html
command: ['-jar', 'DynamoDBLocal.jar', '-inMemory']