Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BornToBeRoot/docker-compose
Collection of my docker compose stacks (traefik, pihole doh, nextcloud, mosquitto, portainer, homeassistant, etc.)
https://github.com/BornToBeRoot/docker-compose
dns-over-https docker docker-compose homeassistant homer mosquitto nextcloud pi-hole portainer traefik
Last synced: 9 days ago
JSON representation
Collection of my docker compose stacks (traefik, pihole doh, nextcloud, mosquitto, portainer, homeassistant, etc.)
- Host: GitHub
- URL: https://github.com/BornToBeRoot/docker-compose
- Owner: BornToBeRoot
- License: mit
- Created: 2023-08-27T00:03:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-25T15:58:17.000Z (6 months ago)
- Last Synced: 2024-11-21T21:47:21.874Z (21 days ago)
- Topics: dns-over-https, docker, docker-compose, homeassistant, homer, mosquitto, nextcloud, pi-hole, portainer, traefik
- Language: Shell
- Homepage:
- Size: 37.1 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - BornToBeRoot/docker-compose - Collection of my docker compose stacks (traefik, pihole doh, nextcloud, mosquitto, portainer, homeassistant, etc.) (Shell)
README
# docker-compose
Collection of my docker compose stacks for various services.
## Stacks
- **[traefik][traefik_readme]** - Traefik reverse proxy, load balancer and certificate manager
> **NOTE:** Most other stacks require this stack to be running
- **[pihole_doh][pihole_doh_readme]** - Pi-hole with DNS over HTTPS (DoH)
- **[mosquitto][mosquitto_readme]** - Mosquitto MQTT broker
- **[portainer_agent][portainer_agent_readme]** - Portainer Agent for remote management of DockerCOMING SOON:
- homeassistant - Home Assistant home automation
- homer - Homer dashboard for your services
- Nextcloud - Nextcloud self-hosted file sync and share with Collabora Online integration
- portainer - Portainer management UI for Docker
- CUPS - CUPS print server## Pre-requirments
Using these stacks requires a server with Docker and Docker Compose installed.
```bash
# Ubuntu
apt install docker docker-compose
```Files are stored in `/opt/container` on the server (but can be changed, depending on your needs).
```bash
# Create directory
mkdir -p /opt/container# Clone repository
git clone https://github.com/BornToBeRoot/docker-compose /opt/container
```> **NOTE:** The `.env` files may contain sensitive information and should be protected accordingly.
>
> ```bash
> # Restrict access
> chmod 640 /opt/container/stacks/*/.env
> chown root:root /opt/container/stacks/*/.env
> ```## Update all stacks
To automatically update all stacks, you can use the [`update_all_stacks.sh`](./update_all_stacks.sh) script that will iterate over all directories and pull the latest container images and restart the services.
```bash
# Copy script to /opt/scripts
mkdir -p /opt/scripts
cp ./update_all_containers.sh /opt/scripts/update_all_containers.sh# Make script executable
chmod +x /opt/scripts/update_all_containers.sh# Create cronjob
nano /etc/crontab
```Add the following line to run the script every tuesday at 1:33:
```plaintext
33 1 * * 2 root /opt/scripts/update_all_stacks.sh
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
[mosquitto_readme]: ./stacks/mosquitto/
[pihole_doh_readme]: ./stacks/pihole_doh/
[portainer_agent_readme]: ./stacks/portainer_agent/
[traefik_readme]: ./stacks/traefik/