forked from silinternational/slack-bot-sms-reminder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.44 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
version: "3"
services:
app:
build:
context: ./
dockerfile: Dockerfile
environment:
GOOS: linux
env_file:
- ./aws.env
volumes:
- ./:/go/src/github.com/silinternational/slack-bot-sms-reminder
working_dir: /go/src/github.com/silinternational/slack-bot-sms-reminder
command: ["bash"]
dynamo:
image: cnadiminti/dynamodb-local
command: "-sharedDb -inMemory"
hostname: dynamo
ports:
- "8000:8000"
environment:
reschedule: on-node-failure
init-dynamo:
image: garland/aws-cli-docker
command: "/init-dynamodb.sh"
volumes:
- ./codeship/init-dynamodb.sh:/init-dynamodb.sh
depends_on:
- dynamo
environment:
- AWS_ACCESS_KEY_ID=0
- AWS_SECRET_ACCESS_KEY=0
- AWS_DEFAULT_REGION=us-east-1
- AWS_DYNAMODB_ENDPOINT=http://dynamo:8000
test:
build:
context: ./
dockerfile: Dockerfile
depends_on:
- init-dynamo
environment:
AWS_ACCESS_KEY_ID: 0
AWS_SECRET_ACCESS_KEY: 0
AWS_DEFAULT_REGION: us-east-1
AWS_DYNAMODB_ENDPOINT: http://dynamo:8000
SLACK_APP_ID: abc123
SLACK_CLIENT_ID: abc123
SLACK_CLIENT_SECRET: abc123
SLACK_SIGNING_SECRET: abc123
SLACK_VERIFICATION_TOKEN: abc123
volumes:
- ./:/go/src/github.com/silinternational/slack-bot-sms-reminder
working_dir: /go/src/github.com/silinternational/slack-bot-sms-reminder
command: ["bash"]