Skip to content

Instantly share code, notes, and snippets.

@gabrielfreirebraz
Last active April 27, 2024 01:10
Show Gist options
  • Save gabrielfreirebraz/46f5f2e8fbb7bb76c22552db6f5c35b4 to your computer and use it in GitHub Desktop.
Save gabrielfreirebraz/46f5f2e8fbb7bb76c22552db6f5c35b4 to your computer and use it in GitHub Desktop.
Basic structure to get start docker compose file
services:
api:
build:
context: .
ports:
- "80:4000"
environment:
NODE_ENV: production
restart: always
db:
container_name: mongodb
image: mongo:latest
volumes:
- mongo_data:/data/db
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment