This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (51 loc) · 1.58 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
# ------------------------------------------------------------------------------
# Firebase Emulator for Tests local and CI
# ------------------------------------------------------------------------------
version: "2.1"
services:
# -------------------------------------
# Firebase Eumulator
# -------------------------------------
emulator:
image: ehealthafrica/firebase-emulator:latest
volumes:
# - ./hosted.json:/app/override.json:rw
# - firebase:/app/fb/functions:rw
# - firebase:/app/fb/public:rw
- firebase-fct:/home/docker/.cache/firebase/emulators:rw
- firebase-fct:/app/fb:rw
environment:
FIREBASE_TOKEN: ${FIREBASE_TOKEN-}
FIREBASE_PROJECT: ${FIREBASE_PROJECT-}
ports:
- 5001:5001
- 9000:9000
- 8080:8080
- 8085:8085
- 5000:5000
- 4000:4000
entrypoint:
["/app/entrypoint.sh", "run_basic"]
test-library:
build: .
entrypoint:
"/test/entrypoint.sh"
environment:
FIRESTORE_EMULATOR_HOST: emulator:8080
FIREBASE_DATABASE_EMULATOR_HOST: emulator:9000
TENANT: test
BASE_PATH: test_project
SYNC_PATH: _sync_queue
KAFKA_URL: ${KAFKA_URL}
KAFKA_SECURITY_PROTOCOL: ${KAFKA_SECURITY_PROTOCOL}
KAFKA_SASL_MECHANISM: ${KAFKA_SASL_MECHANISM}
KAFKA_SASL_USERNAME: ${KAFKA_SASL_USERNAME}
KAFKA_SASL_PASSWORD: ${KAFKA_SASL_PASSWORD}
volumes:
# not required, but nice because it caches downloaded emulator binaries
firebase-fct:
driver: local
driver_opts:
type: volume
o: bind
device: "${PWD}/data"