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

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: