forked from codeforbtv/baby-equipment-exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (49 loc) · 1.5 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
services:
firebase:
image: baby-equipment-exchange-firebase
build:
context: .
target: firebase
command: firebase emulators:start --only functions
environment:
- GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS:-service-account.json}
- FIREBASE_CONFIG=${FIREBASE_CONFIG:-firebase-config.json}
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/functions/node_modules
ports:
# https://firebase.google.com/docs/emulator-suite/install_and_configure#port_configuration
- "4000:4000" # Emulator Suite UI
- "5001:5001" # Cloud Functions
functions:
image: baby-equipment-exchange-functions
build:
context: .
target: functions
working_dir: /usr/src/app/functions
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/functions/node_modules
command: npm run build:watch
environment:
- GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS:-service-account.json}
- FIREBASE_CONFIG=${FIREBASE_CONFIG:-firebase-config.json}
- NODE_ENV=development
depends_on:
- firebase
nextjs:
image: baby-equipment-exchange-nextjs
build:
context: .
target: app
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/functions/node_modules
ports:
- "3000:3000"
command: npm run alt-dev
environment:
- FIREBASE_CONFIG=${FIREBASE_CONFIG:-firebase-config.json}