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

Guilhem Saurel cc4b5c743e forgotten IPv6 il y a 7 ans
cloud 8b61f1e06d change temp domain to main one il y a 7 ans
frontal cc4b5c743e forgotten IPv6 il y a 7 ans
git 8b61f1e06d change temp domain to main one il y a 7 ans
im 8b61f1e06d change temp domain to main one il y a 7 ans
pad 8b61f1e06d change temp domain to main one il y a 7 ans
README.md 226cceb853 update details in instructions 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

# Set variables
export LANG=en_US.UTF-8
export DOMAIN=oxyta.net
export MAIL=services@$DOMAIN
export MYSQL_PASSWORD=$(openssl rand -base64 32)
export MYSQL_ROOT_PASSWORD=$(openssl rand -base64 32)

echo LANG="$LANG" > /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

# Get main Lets Encrypt cert

cp nginx.conf /etc/nginx
systemctl restart nginx
certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d $DOMAIN,www.$DOMAIN

Say No

# Deploy Services

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