-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
66 lines (64 loc) · 1.6 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
version: '3.8'
services:
devLive:
container_name: crosshare-dev-live-firebase
profiles:
- devLive
environment:
- GOOGLE_APPLICATION_CREDENTIALS=../serviceAccountKey.json
command: next dev
build:
context: .
target: dev
image: dev
ipc: host
volumes:
- "./serviceAccountKey.json:/src/serviceAccountKey.json:z"
- "./app:/src/app:z"
- "/src/app/node_modules"
- "/src/app/nextjs"
working_dir: /src/app
ports:
- 3000:3000
dev:
container_name: crosshare-dev
profiles:
- dev
environment:
- NEXT_PUBLIC_USE_EMULATORS=1
- METADATA_SERVER_DETECTION=none
- GCE_METADATA_HOST=0.0.0.0
- FIRESTORE_EMULATOR_HOST="127.0.0.1:8080"
- GCLOUD_PROJECT="demo-crosshare"
command: firebase emulators:exec --import=./emulator-data --only auth,firestore,functions,storage,pubsub --project demo-crosshare --ui 'next dev'
build:
context: .
target: dev
image: dev
ipc: host
volumes:
- "./app:/src/app:z"
- "./functions:/src/functions:z"
- "./app/firebaseConfig.emulators.ts:/src/app/firebaseConfig.ts:z"
- "/src/app/node_modules"
- "/src/app/nextjs"
working_dir: /src/app
ports:
- 3000:3000
- 9199:9199
- 9099:9099
- 9005:9005
- 9000:9000
- 8085:8085
- 8080:8080
- 5001:5001
- 5000:5000
- 4500:4500
- 4000:4000
- 9150:9150
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s