Skip to content

Commit

Permalink
Complete optional STEP 1
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasHSN committed Jan 16, 2024
1 parent 421bd93 commit 22a1848
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,29 @@ management.js (qui communique avec notre API) :

## OPTIONNAL STEP 1 :

...
Pour la réalisation de ce point, nous avons décidé d'utiliser une application web existante qui se nomme "Portainer".

Pour cela, nous avons ajouté un nouveau service dans notre fichier docker-compose.yml utilisant le port 9000 :
```
portainer:
image: portainer/portainer
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: -H unix:///var/run/docker.sock
```

Nous lançons ensuite notre projet avec `docker composer up --build` et nous pourrons accéder à notre application sur
l'URL "http://localhost:9000".

Nous avons créé un nouvel utilisateur comme demandé :

Name : admin
Pass : 123456789000

Puis, nous voilà connecté, nous pouvons gérer depuis cette application nos différents conteneurs/services comme l'on
pourrait le faire depuis l'application "Docker Desktop".

## OPTIONNAL STEP 2 :

Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,11 @@ services:
- traefik.http.routers.static-web-server.tls=true
deploy:
replicas: 1

portainer:
image: portainer/portainer
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: -H unix:///var/run/docker.sock

0 comments on commit 22a1848

Please sign in to comment.