Skip to content

Instantly share code, notes, and snippets.

@thedewpoint
Created April 19, 2022 01:12
Show Gist options
  • Save thedewpoint/128481fa03a4c8ea314eba1668a286d6 to your computer and use it in GitHub Desktop.
Save thedewpoint/128481fa03a4c8ea314eba1668a286d6 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
# Update 'VARIANT' to pick an LTS version of Node.js: 16, 14, 12.
# Append -bullseye or -buster to pin to an OS version.
# Use -bullseye variants on local arm64/Apple Silicon.
VARIANT: "16"
volumes:
- ..:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
db:
image: mongo:latest
restart: unless-stopped
network_mode: service:app
volumes:
- mongodb-data:/data/db
rabbitmq:
image: heidiks/rabbitmq-delayed-message-exchange:3.9.13-management
network_mode: service:app
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=bitnami
volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
volumes:
mongodb-data: null
rabbitmq_data: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment