Şöyle yaparız
version: '3'services:lb:build:context: nginxdockerfile: Dockerfileports:- "9090:9090"networks:- my-networkdepends_on:- service1- service2service1:build:context: service1dockerfile: Dockerfileports:- "8181:8080"networks:- my-networkservice2:build:context: service2dockerfile: Dockerfileports:- "8282:8080"networks:- my-networknetworks:my-network:driver: bridge
Hiç yorum yok:
Yorum Gönder