add redis and postgres using docker

This commit is contained in:
João Geonizeli
2022-07-10 18:36:53 -03:00
parent c3793ee661
commit ff819ab9f5
2 changed files with 21 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ SECRET=aE8efkEP8+V/ibEQl8IKbw==
DB_HOST=localhost DB_HOST=localhost
DB_USER=postgres DB_USER=postgres
DB_PASSWORD=postgres DB_PASSWORD=postgres
DB_NAME=todoListTest DB_NAME=todoListDev

20
server/docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: '3'
services:
postgres:
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=todoListDev
image: postgres:14-alpine
ports:
- '5432:5432'
volumes:
- 'postgres_data:/var/lib/postgresql/data'
redis:
image: redis:7-alpine
ports:
- '6379:6379'
volumes:
postgres_data: