-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·85 lines (80 loc) · 2.38 KB
/
docker-compose.yml
File metadata and controls
executable file
·85 lines (80 loc) · 2.38 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
dynamodb:
image: amazon/dynamodb-local
container_name: dynamodb
expose:
- 8000
command: -jar DynamoDBLocal.jar -dbPath /data -sharedDb
volumes:
- $PWD/dynamodb/data:/data
# DynamoDB用のCORSプロキシ(ブラウザからのアクセスを許可)
dynamodb-proxy:
image: nginx:alpine
container_name: dynamodb-proxy
ports:
- 8000:80
volumes:
- ./nginx-dynamodb-cors.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- dynamodb
dynamodb-admin:
container_name: dynamodb-admin
image: aaronshaf/dynamodb-admin:latest
environment:
- DYNAMO_ENDPOINT=dynamodb:8000
ports:
- 8001:8001
depends_on:
- dynamodb
sveltekit:
build:
context: .
dockerfile: Dockerfile.Svelte
ports:
- '5177:5173'
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: development
depends_on:
- dynamodb
awscli:
# dynamodbが起動していることを確認してから起動
depends_on:
- dynamodb
# awscli-local イメージを使用する
image: amazon/aws-cli
container_name: awscli-local
volumes:
- $PWD/dynamodb:/dynamodb
ports:
- '8089:8080'
# entrypoint: エントリーポイントは空
entrypoint: ['']
# tty: true: ターミナルを使う
tty: true
# ACCESS_KEY_IDとSECRET_ACCESS_KEYはローカル接続なので適当
environment:
AWS_DEFAULT_REGION: ap-northeast-1
AWS_ACCESS_KEY_ID: 'DUMMY'
AWS_SECRET_ACCESS_KEY: 'DUMMY'
# シェルを実行
command:
- /bin/sh
minio:
image: minio/minio
ports:
- 9000:9000 # S3-compatible API
- 9001:9001 # Web Console
volumes:
- $PWD/dynamodb:/dynamodb
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
command: server --console-address ":9001" /data
healthcheck:
test: ['CMD', 'mc', 'ready', 'local']
interval: 5s
timeout: 5s
retries: 5