Fork de https://framagit.org/oxyta.net/oxytanet pour ajouter les choses propres à tetaneutral.net
|
il y a 7 ans | |
---|---|---|
cloud | il y a 7 ans | |
frontal | il y a 7 ans | |
git | il y a 7 ans | |
im | il y a 7 ans | |
pad | il y a 7 ans | |
README.md | il y a 7 ans |
echo 'LANG="en_US.UTF-8"' > /etc/locale.conf
mkdir -p /etc/nginx/sites-enabled/ /srv/letsencrypt ~/.ssh
# Install packages
pacman -Syu --noconfirm git docker docker-compose nginx certbot
systemctl start docker
systemctl enable docker
# Add keys
cd
git clone https://framagit.org/altermediatic/keys.git
cd .ssh
rm authorized_keys
ln -s ../keys/ssh authorized_keys
# Add this repo
cd
git clone https://framagit.org/altermediatic/docker-atelier.git
cd docker-atelier
add include /etc/nginx/sites-enabled/*
to /etc/nginx/nginx.conf in http section
export DOMAIN=oxyta.net
export MAIL=services@$DOMAIN
export MYSQL_PASSWORD=$(openssl rand -base64 32)
export MYSQL_ROOT_PASSWORD=$(openssl rand -base64 32)
for service in pad git cloud
do
pushd $service
ln -s $PWD/nginx.conf /etc/nginx/sites-enabled/$service
certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d www.$service.$DOMAIN -d $service.$DOMAIN
docker-compose up -d
popd
done
cd frontal
docker build -t oxytanet .
docker run -d -p 8080:80 -t oxytanet
ln -s $PWD/nginx.conf /etc/nginx/sites-enabled/frontal
certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d www.$DOMAIN -d $DOMAIN
systemctl restart nginx