Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: "3.9"
services:
martian_mongo_flavour:
build: .
env_file:
- .env.testing
links:
- martian_mongo_db
- martian_redis_db
depends_on:
- martian_mongo_db
- martian_redis_db
volumes:
- ".:/usr/src/app"
martian_redis_db:
image: redis:6.2.1-alpine
container_name: martian_redis_db
ports:
- "6379:6379"
martian_mongo_db:
image: mongo:latest
container_name: martian_mongo_db
ports:
- "27017:27017"
command: --quiet
martian_mongo_nginx:
build:
context: .
dockerfile: nginx.Dockerfile
depends_on:
- martian_mongo_flavour
ports:
- "3050:3050"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment