Skip to content

Instantly share code, notes, and snippets.

@pzentenoe
Created April 22, 2019 01:04
Show Gist options
  • Save pzentenoe/a5699e31a1f4d4ba24b851f73133aaa3 to your computer and use it in GitHub Desktop.
Save pzentenoe/a5699e31a1f4d4ba24b851f73133aaa3 to your computer and use it in GitHub Desktop.
Ejemplo de docker-compose con un stack mean
# Vamos a definir los servicios y contenedores a usar
version: '3'
services:
# Preparamos el cliente
angular:
image: angular-cli:v1 #
ports:
- "4200:4200" # Puerto del cliente
# Preparamos el servidor
servidor:
image: server:v1
ports:
- "3000:3000" #Puerto del servidor
#Contenedor de Mongo
database:
image: mongo
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment