test docker-compose

This commit is contained in:
Valentin CZERYBA 2023-09-27 22:35:13 +02:00
parent f9430fb681
commit cedbdfa7f6
2 changed files with 8 additions and 7 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.env_mongo
.env_redis
.env

View File

@ -4,12 +4,8 @@ services:
mongo:
image: bitnami/mongodb:latest
restart: always
environment:
MONGODB_USERNAME: admin
MONGODB_PASSWORD: mongo
MONGODB_DATABSE: admin
MONGODB_REPLICA_SET_MODE: primary
ALLOW_EMPTY_PASSWORD: 'yes'
env_file:
- .env_mongo
ports:
- "27017:27017"
@ -18,7 +14,9 @@ services:
image: redis/redis-stack-server:latest
backend:
image: covas-bo
build:
context: ../backend
dockerfile: Dockerfile
depends_on:
- mongo
- redis