forked from atlassian/github-for-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (66 loc) · 1.98 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
version: '3'
services:
redis:
image: redis
container_name: redis
ports:
- "6379:6379"
postgres:
image: postgres:14.2-alpine
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ngrok:
image: wernight/ngrok
container_name: ngrok
ports:
- "4040:4040"
command: ngrok http -log stdout --authtoken $NGROK_AUTHTOKEN app:8080
localstack:
image: localstack/localstack:1.0.4
container_name: localstack
environment:
- DEFAULT_REGION=us-west-1
- LAMBDA_REMOTE_DOCKER=false
- LAMBDA_EXECUTOR=local # runs lambda inside temp directory instead of new docker container
- SQS_ENDPOINT_STRATEGY=off # sets the SQS queue domain/path to the legacy version
- LS_LOG=error # log level
ports:
- "4566:4566"
volumes:
- ./.localstack:/docker-entrypoint-initaws.d
cryptor:
build: etc/cryptor-mock
container_name: cryptor
environment:
CRYPTOR_SIDECAR_CLIENT_IDENTIFICATION_CHALLENGE: "random-string" #has to match the one in env.test
ports:
- "26272:26272"
app:
container_name: app
depends_on:
- redis
- postgres
- localstack
- cryptor
volumes:
- .:/app
build:
context: .
ports:
- "8080:8080" # main port
- "9229:9229" # main debug port
- "8081:8081" # worker port
- "9230:9230" # worker debug port
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/jira-dev
CRYPTOR_URL: http://cryptor:26272
SQS_BACKFILL_QUEUE_URL: http://localstack:4566/000000000000/backfill
SQS_PUSH_QUEUE_URL: http://localstack:4566/000000000000/push
SQS_DEPLOYMENT_QUEUE_URL: http://localstack:4566/000000000000/deployment
SQS_BRANCH_QUEUE_URL: http://localstack:4566/000000000000/branch
SQS_TEST_QUEUE_URL: http://localstack:4566/000000000000/test-sqs-client
REDISX_CACHE_HOST: redis
NODE_ENV: $NODE_ENV