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

Guilhem Saurel 0f1ebdde88 clone using https to avoid ssh fingprint checks il y a 7 ans
cloud 1a87c32c81 rename folders to subdomain names il y a 7 ans
frontal 3ce36f6cc0 oxyta.net il y a 7 ans
git 1a87c32c81 rename folders to subdomain names il y a 7 ans
im 1a87c32c81 rename folders to subdomain names il y a 7 ans
pad 1a87c32c81 rename folders to subdomain names il y a 7 ans
README.md 0f1ebdde88 clone using https to avoid ssh fingprint checks 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 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

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

Deploy Frontal

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

Restart nginx

systemctl restart nginx