diff --git a/.env.develop b/.env.develop index 868ed15..b7c3f27 100644 --- a/.env.develop +++ b/.env.develop @@ -8,4 +8,9 @@ CONTAINER_NAME="container-name" ES_PORT=9200 ES_IMAGE_VERSION=8.3.2 ES_IMAGE_NAME="image-name" -ES_CONTAINER_NAME="container-name" \ No newline at end of file +ES_CONTAINER_NAME="container-name" + +MDB_PORT=27017 +MDB_IMAGE_NAME="image-name" +MDB_IMAGE_VERSION="latest" +MDB_CONTAINER_NAME="container-name" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 22be726..1c66e2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,9 @@ ENV MS_SCRIPTS="${MS_HOME}/scripts" ENV USER_NAME=node USER_UID=1000 GROUP_NAME=node GROUP_UID=1000 +ENV ES_PORT=9200 +ENV MDB_PORT=27017 + WORKDIR "${MS_HOME}" # Build diff --git a/docker-compose.yaml b/docker-compose.yaml index 46a132b..85a9ae7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,12 +10,12 @@ services: environment: - xpack.security.enabled=false - discovery.type=single-node - - - - - - + mongo: + image: ${MDB_IMAGE_NAME}:${MDB_IMAGE_VERSION} + container_name: ${MDB_CONTAINER_NAME} + restart: always + ports: + - ${MDB_PORT}:${MDB_PORT} freeland: image: ${IMAGE_NAME}:${IMAGE_VERSION} build: @@ -29,5 +29,4 @@ services: - "${LOCAL_PORT}:${NODE_PORT}" environment: - NODE_ENV= ${NODE_ENV} - - NODE_PORT= ${NODE_PORT} - \ No newline at end of file + - NODE_PORT= ${NODE_PORT} \ No newline at end of file