Friday, December 1, 2023

Docker Compose -Example 2

 





















vi example2-dc.yml

Write the below code

version: '3'
services:
 web:
  image: nginx:1.19
  container_name: test1
  ports:
   - 86:86

 database:
   image: redis:latest
   container_name: my_db
   ports:
     - "5432:5432"





Giving Permissions.



chmod +x /usr/local/bin/docker-compose


























































No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...