Fully working docker-compose file for creating the docker container for teddycloud.
Change the IPs to your network requirements.
The file was created with the infos from the telegram channel. Maybe it’s helpful for someone.
Greetings Matthias
docker-compose.yaml
version: '3'
services:
teddycloud:
container_name: teddycloud
mac_address: 66-66-66-00-00-01 # random
#dns:
# - "192.168.178.1"
# - "192.168.178.132" pi-hole adress
networks:
dockervlan:
ipv4_address: 192.168.178.138 # set your own IP-Adress
hostname: teddycloud
domainname: fritz.box # set your own domain
image: ghcr.io/toniebox-reverse-engineering/teddycloud:latest
ports:
- 80:80 #optional
- 443:443 #Port is needed for the connection for the box
volumes:
- certs:/teddycloud/certs
- config:/teddycloud/config
- content:/teddycloud/data/content
- library:/teddycloud/data/library
- firmware:/teddycloud/data/firmware
restart: unless-stopped
environment:
- TZ=Europe/Berlin
cap_add:
- NET_ADMIN
volumes:
certs:
config:
content:
library:
firmware:
networks:
dockervlan:
name: dockervlan
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: "192.168.178.0/24" # change it to your own network address!
ip_range: "192.168.178.100/26" # change it to your own network address!
gateway: "192.168.178.1" # change it to your own network address!
If you specify a IP for the container you should be able to remove the ip_range setting.
Hint: If you use DHCP in your network (like I am with my fritzbox) there is a setting in the fritzbox to see the range it sets there. When deploying dockercontainer on my macvlan network I give them IPs outside of the range (e.g. < .20) to not come into conflict with any dhcp assigned IPs.
For all who are using this composer file, showed above. be aware that you’re using container volumes. So when you delete them, everything is gone. I would recommend do mount real folders or nfs shares. (maybe next to the docker-compose.yaml)
If have the problem to connect to the webinterface while using the default docker-compose.yaml.
While doing some research I cam across this thread. Why this yaml so different to the default? Is setting up a VLAN required, or should the default yaml also work?