/
docker-compose.yml
85 lines (78 loc) · 2.41 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
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
version: "3"
services:
main-db:
build: ./db/main
volumes:
- ./db/main/initdb.d:/docker-entrypoint-initdb.d
- ./db/main/data:/var/lib/mysql
ports:
- "3306:3306"
environment:
TZ: "Asia/Tokyo"
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: maindb
main-db-schema:
depends_on:
- main-db
build: ./db/main/erd
volumes:
- "./db/main/erd/src:/output"
- "./db/main/erd/schemaspy.properties:/app/schemaspy.properties:ro"
container_name: "schemaspy"
command: "java -jar schemaspy.jar"
redis:
image: "redis:latest"
ports:
- 6379:6379
command: redis-server --requirepass password
volumes:
- ./db/redis:/data
aws:
image: localstack/localstack
volumes:
- ./localstack/script:/docker-entrypoint-initaws.d
- /var/run/docker.sock:/var/run/docker.sock
- ./localstack/data:/tmp/localstack
environment:
SERVICES: s3,sns,sqs
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_DEFAULT_REGION: ap-northeast-1
DATA_DIR: /tmp/localstack/data
DISABLE_CORS_CHECKS: 1
ports:
- 4566:4566
- 8000:8080
- 4572:4572
depends_on:
- aws-cognito
aws-cognito:
image: jagregory/cognito-local:latest
volumes:
- ./localstack/cognito/.cognito:/app/.cognito
- ./localstack/cognito/cognito.json:/app/.cognito/config.json
command: ["node", "/app/start.js"]
ports:
- 9229:9229
environment:
DEBUG: 1
spanner:
image: gcr.io/cloud-spanner-emulator/emulator
ports:
- "9010:9010"
- "9020:9020"
spanner-init:
image: gcr.io/google.com/cloudsdktool/cloud-sdk
command: >
bash -c 'gcloud config configurations create emulator &&
gcloud config set auth/disable_credentials true &&
gcloud config set project $${PROJECT_ID} &&
gcloud config set api_endpoint_overrides/spanner $${SPANNER_EMULATOR_URL} &&
gcloud config set auth/disable_credentials true &&
gcloud spanner instances create $${INSTANCE_NAME} --config=emulator-config --description=Emulator --nodes=1 &&
gcloud spanner databases create $${DATABASE_NAME} --instance=$${INSTANCE_NAME}'
environment:
PROJECT_ID: "test-project"
SPANNER_EMULATOR_URL: "http://spanner:9020/"
INSTANCE_NAME: "test-instance"
DATABASE_NAME: "test-database"