This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -d \ | |
--name plex \ | |
--net=host \ | |
--restart=always \ | |
-e PUID=0 \ | |
-e PGID=0 \ | |
-e TZ="Asia/Seoul" \ | |
-v /home/docker/plex/config:/config \ | |
-v /home/docker/plex/transcode:/transcode \ | |
-v /home/rubyon/Shared/Downloads:/Downloads \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update Plex | |
sudo docker exec -it plex /bin/bash | |
echo 1.5.0.3501-3b8374a5c > /version.txt | |
exit | |
sudo docker restart plex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### | |
NetWork | |
####### | |
sudo docker network create -d macvlan \ | |
--subnet=192.168.10.0/24 \ | |
--gateway=192.168.10.1 \ | |
-o parent=enp0s25 rubyon | |
################## | |
NetWork With Range |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
MAINTAINER 1.0 [email protected] | |
ENV USER_ID="userid" AUTH_CODE="authcode" | |
RUN echo "dnsever-ddns-updater id \"\$1\" && dnsever-ddns-updater auth_code \"\$2\" && dnsever-ddns-updater start && /bin/sh" > start.sh | |
RUN chmod +x start.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile 을 사용하여 이미지 빌드 | |
sudo docker build -t rubyon.co.kr:5555/dnsever dnsever | |
# 빌드된 이미지를 Registry 로 Push | |
sudo docker push rubyon.co.kr:5555/dnsever |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run --detach \ | |
--name gitlab \ | |
--restart always \ | |
--hostname git.rubyon.co.kr \ | |
--net=rubyon --ip=192.168.10.12 \ | |
-v /home/docker/gitlab/config:/etc/gitlab \ | |
-v /home/docker/gitlab/logs:/var/log/gitlab \ | |
-v /home/docker/gitlab/data:/var/opt/gitlab \ | |
gitlab/gitlab-ce:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL Install | |
sudo docker run -d \ | |
--restart=always \ | |
--name wordpress-db \ | |
-e MYSQL_ROOT_PASSWORD='98010~!@' \ | |
-v /home/docker/wordpress/data:/var/lib/mysql \ | |
-e MYSQL_DATABASE=wordpress \ | |
mysql | |
# WordPress Install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -d \ | |
--name gitea-db \ | |
--restart=always \ | |
-e POSTGRES_PASSWORD='98010~!@' \ | |
-v /home/docker/gitea/data:/var/lib/postgresql/data \ | |
-p 5432:5432 \ | |
postgres:alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker exec -it gitea-db psql -U postgres | |
CREATE USER gitea WITH PASSWORD '98010~!@'; | |
CREATE DATABASE gitea OWNER gitea; | |
\q |
OlderNewer