sourcegraph/dev/redis-postgres.yml
david-sandy 30a4bdd581
Update Postgres to 12.7 (#31933)
* Update postgres 12.7

Update due to this issue: 
https://nvd.nist.gov/vuln/detail/CVE-2021-32027

* Renamed DIr

Updated dir name for postgres new version

* Update postgres references

* Update postgres references

* Update Postgres references

* Updated Postgres references

* Updated postgres references

Not sure about line 70 with the tag postgres-12.6:21-03-26_5d7084279

* Updated postgres references

* Updated Postgres References

* run go generate ./...

* Reference Changes

* Updated 12-7 reference

* Updated reference

* Updated reference

* Updated reference

* Updated reference

* Updated reference

* Updated permissions

Updated permissions

* Run go generate .

* Added change for Postgres

* Added change # to postgres change

* Update changelog

* Fix file permissions

* Updated postgres reference from 12.6 to 12.7

Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
Co-authored-by: Crystal Augustus <crystal.augustus@sourcegraph.com>
2022-03-03 14:39:52 -06:00

31 lines
1.1 KiB
YAML

# 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: