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

Python -3

  Lists It is used to store Collection of data. Lists are created using square brackets: List Items Order cannot be changed. It can have dup...