Bookmark and Share Subscribe

重設 logi k580 鍵盤

 Reset the keyboard by pressing the following keys: 

做這些組合鍵

第一次

“Escape” – “o” 


第二

“Escape” – “o”,


第三次

“Escape” – “b”

AWS S3 儲存體 Bucket Policy

 {

    "Version": "2012-10-17",

    "Statement": [

        {

            "Sid": "Statement1",

            "Effect": "Allow",

            "Principal": "*",

            "Action": "s3:*",

            "Resource": "arn:aws:s3:::儲存體名字"

        }

    ]

}

SRE nextcloud

 touch docker-compose.yml

https://gist.github.com/ichiTechs/83e228fa1e6c83543623a1bf06f3eb32#file-docker-compose-yml

root@Next:~/nextcloud# cat docker-compose.yml

version: '2'


services:


  nextcloud:

    container_name: nextcloud

    restart: unless-stopped

    image: nextcloud

    ports:

      - 80:80

    volumes:

      - /next:/var/www/

    depends_on:

      - db


  db:

    container_name: maria-db

    restart: unless-stopped

    image: mariadb

    command: --innodb-read-only-compressed=OFF

    environment:

      MYSQL_ROOT_PASSWORD: root

      MYSQL_DATABASE: ncdb

      MYSQL_USER: nextcloud

      MYSQL_PASSWORD: nextcloud

    volumes:

      - /root/nextcloud/db:/var/lib/mysql

 


啟動所有的 Docker Container 指令如下

$ docker-compose up -d


 bookstack


docker run -d --net bookstack_nw \
-e DB_HOST=bookstack_db:3306 \
-e DB_DATABASE=bookstack \
-e DB_USERNAME=bookstack \
-e DB_PASSWORD=secret \
-e APP_URL=http://192.168.88.5 \
-p 80:8080 \
--name="bookstack_22.04" \
--restart=always
solidnerd/bookstack:22.04

 


sudo docker run --detach \
--hostname gitlab.david888.com  \
--publish 443:443 --publish 80:80 \
--name gitlab \
--restart always \
--volume /gitlab/config:/etc/gitlab \
--volume /gitlab/logs:/var/log/gitlab \
--volume /gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest



-- 
gitlab ce 無法登入的解法
https://stackoverflow.com/questions/55747402/docker-gitlab-change-forgotten-root-password

root@gitlab:/# nano /etc/gitlab/gitlab.rb
root@gitlab:/# gitlab-ctl reconfigure

user = User.where(id: 1).first
user.password = 'qAHuoWCJTJYH'
user.password_confirmation = 'qAHuoWCJTJYH'
user.save
exit


 

# 必裝 portainer
docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer


# 啟用 Docker service 與開機自動啟用
sudo systemctl start docker
sudo systemctl enable docker


LinkWithin

Related Posts with Thumbnails
top