Skip to content

Instantly share code, notes, and snippets.

@jamesseanwright
Created July 18, 2021 16:35
Show Gist options
  • Save jamesseanwright/04089ccd65da0b1439ab8d1508c8f8e0 to your computer and use it in GitHub Desktop.
Save jamesseanwright/04089ccd65da0b1439ab8d1508c8f8e0 to your computer and use it in GitHub Desktop.
version: '3'
services:
get-events:
build:
context: ./handlers
args:
handler: get-events
environment:
MONGODB_URI: mongodb://db:27017
depends_on:
- db
add-event:
build:
context: ./handlers
args:
handler: add-event
environment:
MONGODB_URI: mongodb://db:27017
depends_on:
- db
db:
image: mongo:4.4.5
environment:
MONGO_INITDB_DATABASE: events
api-gateway:
image: nginx:1.20.0-alpine
ports:
- 8080:80
volumes:
- ./local-api-gateway:/etc/nginx:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment