Добавить Readme
This commit is contained in:
commit
be4f16269e
21
Readme
Normal file
21
Readme
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
mkdir -p ~/portainer && cd ~/portainer
|
||||||
|
|
||||||
|
nano docker-compose.yml
|
||||||
|
|
||||||
|
services:
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce:latest
|
||||||
|
container_name: portainer
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "9000:9000"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock # ← доступ к Docker
|
||||||
|
- portainer_data:/data # ← БД (настройки, юзеры)
|
||||||
|
# Опционально: ограничение ресурсов
|
||||||
|
# mem_limit: 512m
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
portainer_data:
|
||||||
|
|
||||||
|
docker compose up -d
|
||||||
Loading…
Reference in New Issue
Block a user