Using this procedure, we set up docker using the Turnkey Core container (Debian Linux). The container is created with the following resources:
- 4 CPUs
- 4096 KB Memory
- 8 GB SSD Storage (Shared PVE-storage)
- LS Services Network
Portainer Edge Agent
We will manage docker using the Portainer instance on one of our NAS drives.
This is done via the Portainer Edge Agent. The steps to install the Portainer Edge Agent are as follows:
- Create a new environment on the Portainer Host
- Select and use the Portainer edge agent choice
- BE CAREFUL TO SELECT THE PORTAINER HOST URL, NOT THE AGENT when setting up
- Carefully copy the EDGE_ID and the EDGE_KEY fields into the script in the next step that is used to spin up the edge agent
- Install the Portainer Edge Agent on the docker container as follows:
docker run -d \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /var/lib/docker/volumes:/var/lib/docker/volumes \ -v /:/host \ -v portainer_agent_data:/data \ --restart always \ -e EDGE=1 \ -e EDGE_ID=<replace with id from portainer> \ -e EDGE_KEY=<replace with key from portainer> \ -e EDGE_INSECURE_POLL=1 \ --name portainer_edge_agent \ portainer/agent:latest
Mail Forwarding
More work needs to be done here. Here’s some information to help get started –
- Postfix configuration in Turnkey LXC
- Procedure to get postfix configured to support forwarding e-mail through smtp2go.