Last active
April 27, 2024 01:10
-
-
Save gabrielfreirebraz/46f5f2e8fbb7bb76c22552db6f5c35b4 to your computer and use it in GitHub Desktop.
Basic structure to get start docker compose file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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