doc und docker url
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM docker.triton2.fet.at/openrestyfet
|
FROM docker.fet.at/openrestyfet
|
||||||
RUN rm -rf /etc/nginx/conf.d/*
|
RUN rm -rf /etc/nginx/conf.d/*
|
||||||
COPY ./conf.d/ /etc/nginx/conf.d/
|
COPY ./conf.d/ /etc/nginx/conf.d/
|
||||||
copy ./snippets/ /usr/local/openresty/nginx/conf/
|
copy ./snippets/ /usr/local/openresty/nginx/conf/
|
||||||
|
|||||||
28
docs/docker_setup.md
Normal file
28
docs/docker_setup.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Docker für WEbsite from scratch
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
apt-get install \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
lsb-release
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||||
|
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
apt-get install docker-ce docker-ce-cli containerd.io
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Portainer
|
||||||
|
docker volume create portainer_data
|
||||||
|
|
||||||
|
docker network create
|
||||||
|
|
||||||
|
docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.11.1
|
||||||
|
|
||||||
Reference in New Issue
Block a user