Updated "How to use"
Some checks failed
Build and push / build-and-push (push) Has been cancelled

Build a new image and start container.
This commit is contained in:
2026-04-13 07:12:12 +03:00
parent 7ceed20712
commit 9c9d830215

View File

@@ -28,5 +28,26 @@ docker run -d \
-v portainer_data:/data \
ngxson/portainer-ce-without-annoying:latest
```
Or, to build a new image, create a docker-compose.yml file with:
```
services:
portainer:
build: . # Aici îi spui: "Uită-te după Dockerfile în folderul curent"
image: portainer-ce-without-annoying:latest
container_name: portainer
restart: always
network_mode: bridge # Această linie forțează utilizarea rețelei default
ports:
- "9000:9000"
- "9443:9443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
```
and start with:
```
docker compose up -d
```
Alternatively, you can use [this docker-compose.yml](http://192.168.1.10:3000/petru/portainer-ce-without-annoying/src/branch/master/docker-compose.yml)