-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.59 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
services:
# gffft-db:
# image: postgis/postgis
# restart: always
# environment:
# POSTGRES_USER: gffft
# POSTGRES_PASSWORD: gffft
# POSTGRES_DB: gffft
# volumes:
# - gffft_db:/var/lib/postgresql/data
# ports:
# - "5442:5432"
firebase-emulator:
image: gffft-firebase-emulator
platform: linux/arm64
build:
context: ./
dockerfile: ./firebase-emulator/Dockerfile
volumes:
# - ./firebase-emulator:/app
- ./functions:/app
- ./firebase-emulator/data:/app/data
- /app/node_modules
ports:
- "4000:4000"
- "5001:5000"
- "8080:8080"
- "9099:9099"
- "9199:9199"
command: firebase emulators:start --project gffft-auth --import /app/data
redis:
image: "redis:alpine"
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass 98puOInkjbO&YiubkBt8guhvjhvredrg
api:
image: gffft-api
depends_on:
- firebase-emulator
build:
context: ./functions
dockerfile: ../functions/Dockerfile
volumes:
- ./functions:/app
- /app/node_modules
environment:
SERVICE: local
NODE_ENV: dockerCompose
FIREBASE_AUTH_EMULATOR_HOST: "firebase-emulator:9099"
FIRESTORE_EMULATOR_HOST: "firebase-emulator:8080"
FIREBASE_STORAGE_EMULATOR_HOST: "firebase-emulator:9199"
GCLOUD_PROJECT: "gffft-auth"
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: 98puOInkjbO&YiubkBt8guhvjhvredrg
ports:
- "3000:3000"
volumes:
gffft_db: null
cache: null