🔧 Config/docs of various sort
This commit is contained in:
parent
133c09076a
commit
ee0f40d82c
6 changed files with 187 additions and 0 deletions
12
docker_configs/docker/postgres/docker-compose.yml
Normal file
12
docker_configs/docker/postgres/docker-compose.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
version: "3.8"
|
||||
services:
|
||||
db:
|
||||
image: postgres:16.1-alpine
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=postgros
|
||||
- POSTGRES_PASSWORD=postgros
|
||||
networks:
|
||||
- app_backend
|
||||
networks:
|
||||
app_backend: {}
|
||||
22
docker_configs/docker/postgres/readme.md
Normal file
22
docker_configs/docker/postgres/readme.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
## Setting up Redis With Docker
|
||||
|
||||
**NOTE:**
|
||||
|
||||
This is just a starting point for using redis within docker. Eventually we'll
|
||||
need to set up an image that utilizes nodejs/npm to install our backend
|
||||
dependencies, postgresql, and redis to all work within a single container. See
|
||||
[this helpful tutorial](https://geshan.com.np/blog/2022/01/redis-docker/).
|
||||
|
||||
To run this simple container, simply invoke:
|
||||
|
||||
```
|
||||
docker-compose -f docker-compose.yml up -d
|
||||
```
|
||||
|
||||
And if you want to interact with the redis instance via the cli:
|
||||
|
||||
// NOTE FOR POSTGRES, EDIT THIS:
|
||||
|
||||
```
|
||||
docker exec -it <CONTAINER_ID> psql -U <USERNAME>
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue