8000 Add ansible doc · BaseMax/ComposeDockerNginxPHP@1668ff3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1668ff3

Browse files
committed
Add ansible doc
1 parent b261899 commit 1668ff3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Based on the official Docker images:
2626
* [Docker Compose](https://docs.docker.com/compose/release-notes/) version **2.3.4** or newer
2727

2828
> **Warning**
29-
> For running this stack you must use `docker compose up` instead of `docker-compose up` (see [this](https://github.com/BaseMax/ComposeDockerNginxPHP/issues/2))
29+
> For running this stack you must use `docker compose up` instead of `docker-compose up` (see [this](https://github.com/BaseMax/ComposeDockerNginxPHP/issues/2)).
3030
>
3131
> **Note**
3232
> Especially on Linux, make sure your user has the [required permissions](https://docs.docker.com/engine/install/linux-postinstall/) to interact with the Docker
@@ -113,7 +113,7 @@ The PHPMyAdmin configuration is located in the phpmyadmin directory. The config.
113113
### How to configure Ansible
114114

115115
> **Warning**
116-
> For now only work in ubuntu servers
116+
> For now only work in ubuntu servers.
117117
118118
Ansible is an open-source software provisioning, configuration management, and application-deployment tool. It is used to automate the management of remote servers, including the installation and configuration of software. If you want deploy this stack on one or more remote servers you must use [ansible playbooj](https://github.com/BaseMax/ComposeDockerNginxPHP/blob/main/ansible/playbook.yml).
119119

@@ -124,6 +124,9 @@ First you need to add your server information in `hosts.ini` file:
124124
<IP_OF_YOUR_SERVER> ansible_ssh_host=<IP_OF_YOUR_SERVER> ansible_ssh_port=<SSH_PORT_NUMBER> ansible_ssh_user=root ansible_ssh_private_key_file=<PATH_TO_PRIVATE_SSH_KEY>
125125
```
126126

127+
> **Warning**
128+
> In order to Playbook work properly, the name of each host must be exactly th IP of the same server.
129+
127130
This playbook first install latest version of docker and docker compose on remote servers with add docker GPG key and add Docker Repository to ubuntu server. You must specify ubuntu release in playbook var:
128131

129132
```yml
@@ -159,7 +162,7 @@ ansible-playbook -i hosts.ini playbook.yml
159162
And finally start project with running docker compose file.
160163

161164
> **Warning**
162-
> In all the above steps you must have `root` access to servers
165+
> In all the above steps you must have `root` access to servers.
163166

164167
## License
165168

0 commit comments

Comments
 (0)
0