forked from minamijoyo/tfmigrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (32 loc) · 891 Bytes
/
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
version: '3'
services:
tfmigrate:
build:
context: .
args:
TERRAFORM_VERSION: ${TERRAFORM_VERSION:-latest}
volumes:
- ".:/work"
environment:
CGO_ENABLED: 0 # disable cgo for go test
LOCALSTACK_ENDPOINT: "http://localstack:4566"
# Use the same filesystem to avoid a checksum mismatch error
# or a file busy error caused by asynchronous IO.
TF_PLUGIN_CACHE_DIR: "/tmp/plugin-cache"
depends_on:
- localstack
localstack:
image: localstack/localstack:0.11.3
ports:
- "4566:4566"
environment:
DEBUG: "true"
SERVICES: "s3,ec2,iam"
DEFAULT_REGION: "ap-northeast-1"
S3_BUCKET: "tfstate-test"
volumes:
- "./scripts/localstack:/docker-entrypoint-initaws.d" # initialize scripts on startup
dockerize:
image: jwilder/dockerize
depends_on:
- localstack