Build a new image and start container.
This commit is contained in:
21
README.md
21
README.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user