Fork de https://framagit.org/oxyta.net/oxytanet pour ajouter les choses propres à tetaneutral.net

Guilhem Saurel ce7dea7f66 with www after without il y a 7 ans
cloud 40ace12bf6 ipv6, http2 il y a 7 ans
frontal ef14169e66 fix nginx confs il y a 7 ans
git 66235e8c8e fix nginx confs il y a 7 ans
im 1a87c32c81 rename folders to subdomain names il y a 7 ans
pad 6e6342b839 fix nginx confs again XD il y a 7 ans
README.md ce7dea7f66 with www after without il y a 7 ans
nginx.conf ef14169e66 fix nginx confs il y a 7 ans

README.md

Ateliers Docker

Pad

Install on a clean Arch

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 -f authorized_keys
ln -s ../keys/ssh authorized_keys

# Add this repo
cd
git clone https://framagit.org/altermediatic/docker-atelier.git
cd docker-atelier

Deploy Services

export DOMAIN=oxyta.net
export MAIL=services@$DOMAIN
export MYSQL_PASSWORD=$(openssl rand -base64 32)
export MYSQL_ROOT_PASSWORD=$(openssl rand -base64 32)

cp nginx.conf /etc/nginx
systemctl restart nginx
certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d $DOMAIN,www.$DOMAIN
for service in pad git cloud frontal
do
    pushd $service
    ln -s $PWD/nginx.conf /etc/nginx/sites-enabled/$service
    [[ $service != frontal ]] && certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d $service.$DOMAIN,www.$service.$DOMAIN
    docker-compose up -d
    popd
done

Restart nginx

systemctl restart nginx