diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28b69ce --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.env_mongo +.env_redis +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 43af558..bb303ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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