Complete server deployment config
|
|
6 vuotta sitten | |
|---|---|---|
| roles | 6 vuotta sitten | |
| templates | 6 vuotta sitten | |
| .gitignore | 6 vuotta sitten | |
| README.md | 6 vuotta sitten | |
| ansible.cfg | 6 vuotta sitten | |
| hosts | 6 vuotta sitten | |
| playbook.yml | 6 vuotta sitten |
Set up a series of machines for web hosting & data storage.
The easiest way to use these files is to copy the config of a service you want into your own docker-compose.yaml file. You'll need to change my domain names to your own.
If you decide to use environment variables, you'll need to create a .env file in the same directory as your compose file. This should declare any variables used in the compose file.
For example, if your compose file uses the CONTAINERS_DIR and POSTGRES_PASSWORD variables I'm using in my compose file, your .env file should look something like this:
CONTAINERS_DIR=/home/user/my-container-data
POSTGRES_PASSWORD=mysecretpassword
The hostnames & keys may be changed to set up a generic web & storage instance, ready to run docker-compose/host a NAS.