This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
63 lines (62 loc) · 1.69 KB
/
docker-compose.yaml
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
version: '3.4'
services:
editor-article-store:
build:
context: './'
target: ${RUN_ENV:-prod}
image: editor-article-store:${IMAGE_TAG:-local}
volumes:
- ./src/:/app/src
network_mode: "service:localstack"
localstack:
image: localstack/localstack:0.12.11
ports:
- 4566:4566
# this is exposing the editor-article-store which is making use of localstacks network for host resolving reasons
- 8080:8080
environment:
- SERVICES=s3,sqs
healthcheck:
test: 'echo -e "GET /health\n\n" | nc localhost 4566'
interval: 1m
timeout: 10s
retries: 3
container_name: localstack
volumes:
- "./tmp/localstack:/tmp/localstack"
- "./resources:/resources"
- "./test/test-files:/test/test-files"
- "./.localstack/startup:/docker-entrypoint-initaws.d"
- "./.localstack/config:/etc/localstackconf"
mongo:
image: mongo
container_name: editor_mongo
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 3
start_period: 20s
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
transformer:
container_name: transformer
image: elifesciences/basex-transformer:latest
ports:
- 8984:8984
# Development Services
s3-file-watcher:
build:
context: './file-watcher'
image: file-watcher:${IMAGE_TAG:-local}
environment:
- S3_BUCKET=kryia
- AWS_ENDPOINT=http://localstack:4566
volumes:
- "./tmp/kryiaBucket:/bucket-to-watch"
depends_on:
- localstack