-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
97 lines (85 loc) · 2.93 KB
/
docker-compose.override.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
db-local:
container_name: db-local
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- db-local-data:/var/lib/postgresql/data/pgdata
# - ./services/_api/src/db/sql:/docker-entrypoint-initdb.d/ # to auto-seed the database
command: postgres -c log_statement=all
cloudsql-proxy: # access your cloud sql database from your local machine
container_name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
ports:
- 5433:5432
volumes:
- ./services/database/keys:/config
restart: always
command: /cloud_sql_proxy --dir=/cloudsql -instances=your-gcp:europe-west1:quick-desk-sql-instance=tcp:0.0.0.0:5432 -credential_file=/config/google-creds.json
pgadmin: # postgres database graphical interface dashboard
container_name: pgadmin
image: dpage/pgadmin4
ports:
- 5050:80
environment:
- PGADMIN_DEFAULT_PASSWORD=grespost
- PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True
volumes:
- pgadmin-data:/var/lib/pgadmin
firebase: # custom image for running firestore emulators locally
container_name: firebase_container
build:
context: ./services/_tools
dockerfile: firebase.dockerfile
network: host
ports:
- 4000:4000 # ui
- 9099:9099 # auth
- 5001:5001 # functions
- 8080:8080 # firestore
# NOTE hosting might not be needed in this context
- 5000:5000 # hosting
# environment:
# - GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/application_default_credentials.json
# - GENERATIVE_AI_PROVIDER=${GENERATIVE_AI_PROVIDER}
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# - OPENAI_ASSISTANT_ID=${OPENAI_ASSISTANT_ID}
volumes:
- firebase-data:/home/node/data/ # persistant local data store
- ./services/${FAST_STACK_SERVICE}/src:/home/node/app # local app source code
- ~/.config/gcloud/application_default_credentials.json:/tmp/keys/application_default_credentials.json
command: firebase emulators:start --only auth,firestore,functions,hosting --import /home/node/data/firebase --export-on-exit
# tty: true
redis:
container_name: redis_container
image: redis:alpine
# environment:
# - REDIS_PASSWORD=ubuntu
# - REDIS_REPLICATION_MODE=master
ports:
- 6379:6379
volumes:
- redis-data:/var/lib/redis
- ./services/redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server
# restart: unless-stopped
redisinsight: # redis db visualization dashboard
container_name: redisinsight
image: redislabs/redisinsight
ports:
- 8001:8001
volumes:
- redisinsight-data:/db
volumes:
db-local-data:
pgadmin-data:
firebase-data:
redis-data:
redisinsight-data:
grafana-data: