Last active
November 3, 2018 06:25
-
-
Save torchhound/c104ea2f7798ef8e9a573522a5025342 to your computer and use it in GitHub Desktop.
mongo-crud docker/docker-compose.test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
backend-test: | |
build: | |
context: ../ | |
dockerfile: docker/Dockerfile.test | |
args: | |
port: ${PORT} | |
env_file: | |
- ../.env | |
environment: | |
WAIT_HOSTS: database-test:27017 | |
database-test: | |
image: mongo:4.0 | |
env_file: | |
- ../.env | |
volumes: | |
- ".${MONGO_TEST_DATA_DIR}:${MONGO_TEST_DATA_DIR}" | |
expose: | |
- 27017 | |
command: "mongod --smallfiles --logpath=${MONGO_LOG_FILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment