-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.32 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
version: '3.9'
services:
dev:
image: dev:latest
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- './:/app'
depends_on:
- lambda
profiles: [test]
lambda:
image: splat:dev
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
develop:
watch:
- action: sync+restart
path: lambda_function.py
target: /var/task/lambda_function.py
- action: rebuild
path: lambda_requirements.txt
environment:
- AWS_ACCESS_KEY_ID=root
- AWS_SECRET_ACCESS_KEY=password
- AWS_DEFAULT_REGION=us-east-1
- AWS_ENDPOINT_URL=http://minio:9000
- AWS_USE_PATH_STYLE_ENDPOINT=true
volumes:
- './tests:/var/task/tests'
ports:
- 8080:8080
depends_on:
- minio
minio:
image: 'minio/minio:latest'
ports:
- '${FORWARD_MINIO_PORT:-9000}:9000'
- '${FORWARD_MINIO_CONSOLE_PORT:-9090}:9090'
environment:
MINIO_ROOT_USER: 'root'
MINIO_ROOT_PASSWORD: 'password'
entrypoint: sh
volumes:
- './minio:/data/minio'
# Buckets are just mapped to the `minio` directory. We default create a test bucket
command: -c 'mkdir -p /data/minio/test && /usr/bin/minio server --console-address ":9090" /data/minio'