🔧 Config/docs of various sort

This commit is contained in:
z3rOR0ne 2024-01-24 15:40:02 -08:00
parent 133c09076a
commit ee0f40d82c
6 changed files with 187 additions and 0 deletions

View 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: {}

View 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>
```

View file

@ -0,0 +1,18 @@
version: "3.8"
services:
cache:
image: redis:7.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass redis
networks:
- postgres_app_backend
volumes:
- cache:/data
networks:
postgres_app_backend:
name: postgres_app_backend
external: true
volumes:
cache:
driver: local

View file

@ -0,0 +1,20 @@
## 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:
```
docker exec -it <CONTAINER_ID> redis-cli -a <REDIS_PASSWORD>
```