Skip to content

Instantly share code, notes, and snippets.

@torchhound
Last active November 3, 2018 06:25
Show Gist options
  • Save torchhound/c104ea2f7798ef8e9a573522a5025342 to your computer and use it in GitHub Desktop.
Save torchhound/c104ea2f7798ef8e9a573522a5025342 to your computer and use it in GitHub Desktop.
mongo-crud docker/docker-compose.test.yml
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