FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/dev/redis-postgres.yml at main · TiO2/sourcegraph · GitHub
TiO2
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
dev
/
redis-postgres.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (30 loc) · 1.09 KB
Breadcrumbs
sourcegraph
/
dev
/
redis-postgres.yml
Copy path
File metadata and controls
30 lines (30 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
This files provides an easy way to start Redis and PostgreSQL servers for
#
development, via docker-compose.
#
#
See https://docs.sourcegraph.com/dev/getting-started/quickstart_3_initialize_database#with-docker
#
#
You can also use `sg run redis-postgres`.
services
:
redis
:
image
:
index.docker.io/sourcegraph/redis-cache:insiders
ports
:
-
6379:6379
volumes
:
-
./redis.conf:/etc/redis/redis.conf
-
${REDIS_DATA_DIR:-redis_data}:/data
postgresql
:
image
:
index.docker.io/sourcegraph/postgres-12-alpine:insiders
ports
:
-
5432:5432
environment
:
-
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-sourcegraph}
-
POSTGRES_USER=${POSTGRES_USER:-sourcegraph}
-
POSTGRES_DB=${PGDATABASE:-sourcegraph}
-
"
POSTGRES_INITDB_ARGS= --encoding=UTF8
"
volumes
:
#
Match PGDATA in Dockerfile
#
https://sourcegraph.com/search?q=context:%40sourcegraph/all+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+file:%5Edocker-images/postgres.*/Dockerfile+PGDATA
-
${PGDATA_DIR:-postgres_12_data}:/data/pgdata-12
volumes
:
redis_data
:
postgres_12_data
:
Back
|
FazBrowse Home
|
New Git URL