Browse Source

Update install.md

master
Heuzef 1 year ago
committed by GitHub
parent
commit
bcd45fbc9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 14 deletions
  1. +32
    -14
      install.md

+ 32
- 14
install.md View File

@@ -4,7 +4,7 @@


- Déploiement Ubuntu 22.04.1 LTS avec le package OpenSSH + Docker - Déploiement Ubuntu 22.04.1 LTS avec le package OpenSSH + Docker
- Changement des MDP root et cognhacker - Changement des MDP root et cognhacker
- Installation d’utilitaires : ``apt install -y curl wget git screen htop vim nano sudo tree iperf3 unzip sshfs nmap apache2``
- Installation d’utilitaires : ``apt install -y curl wget git screen htop vim nano sudo tree iperf3 unzip sshfs nmap apache2 network-manager net-tools``
- MAJ et redémarrage - MAJ et redémarrage
- Mise en service d’apache et clone du site - Mise en service d’apache et clone du site
- ``echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf`` - ``echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf``
@@ -17,20 +17,8 @@ Quelques tutos :
* https://wiki.techinc.nl/Work-Adventure/install * https://wiki.techinc.nl/Work-Adventure/install
* https://github.com/thecodingmachine/workadventure/tree/master/contrib/docker * https://github.com/thecodingmachine/workadventure/tree/master/contrib/docker


Création de l’arborescence :
````
/root/
├── workad
│   ├── docker-compose.yml
│   └── .env
/srv/
└── www
├── .git
├── index.html
└── README.md
````
Création du **docker-compose.yml**


**docker-compose.yml**
```` ````
version: "3.3" version: "3.3"
services: services:
@@ -127,6 +115,30 @@ services:
redis: redis:
image: redis:6 image: redis:6
restart: unless-stopped restart: unless-stopped

wordpress:
image: unless-stopped
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: cognhacker
WORDPRESS_DB_PASSWORD: **********************
WORDPRESS_DB_NAME: cognhacker
volumes:
- /var/www/html:/var/www/html

db:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_DATABASE: cognhacker
MYSQL_USER: cognhacker
MYSQL_PASSWORD: **********************
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
```` ````


**.env** **.env**
@@ -169,3 +181,9 @@ SECRET_KEY="**********************"
ADMIN_API_TOKEN="**********************" ADMIN_API_TOKEN="**********************"
ADMIN_API_URL= ADMIN_API_URL=
```` ````

Lancement :

````
sudo docker-compose -f /home/cognhacker/docker-compose.yml up -d --build
````

Loading…
Cancel
Save