Skip to content

Instantly share code, notes, and snippets.

@febriliankr
Last active January 28, 2024 14:04
Show Gist options
  • Save febriliankr/d93566abdefb174ccd973b9959cc9962 to your computer and use it in GitHub Desktop.
Save febriliankr/d93566abdefb174ccd973b9959cc9962 to your computer and use it in GitHub Desktop.
Docker compose for multiple apps
version: "3"
services:
client:
container_name: nextjs-client
build:
context: ./next-client
ports:
- "3000:3000"
networks:
- mynetwork
go-api:
container_name: go-api
build:
context: ./go-api
ports:
- "9195:9195"
networks:
- mynetwork
node-api:
container_name: node-api
volumes:
- /usr/src/node_modules
build:
context: ./node-api
ports:
- "9005:9005"
networks:
- mynetwork
networks:
mynetwork:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment