*As someone who works in a scientific field it is quite important to keep track of your data. Nextcloud is especially helpful because it is well integraged in most platfroms, has a nice interface, integrated project planing, notes, and is secure.
So here are some quick notes in case i have to repeat the setup process. I have some shares prepared on my FreeNAS system that will serve as the storage.*
host shares: ------ iohyve:RancherOS ----- inside the container @192.168.0.2 @192.168.0.16 /mnt/zpool/docker /mnt/docker :volumes in docker-compose.yml /mnt/zpool/dbs /mnt/dbs /mnt/zpool/data /mnt/data
Typically as a first approach you always run the
docker run command without
-d and check what happens, delete the container and setup a rancher-compase.yml. Following, i create a stack and play with the configurations until everything works as expected. THere are my docker-compose.yml and rancher-compose.yml files.
In this case: I wanted to have a decent working cloud, a mysql database, and a simple Blog where I can write some notes down.
version: '2' services: mariadb: image: linuxserver/mariadb hostname: mariadb environment: PGID: '1000' PUID: '1000' MYSQL_ROOT_PASSWORD: 'passwordofyourchoice' TZ: 'Europe/Berlin' stdin_open: true tty: true ports: - 3306:3306/tcp labels: io.rancher.container.pull_image: always nextcloud: image: linuxserver/nextcloud hostname: nextcloud environment: PGID: '1000' PUID: '1000' volumes: - /mnt/docker/rancher/nextcloud:/config - /mnt/data/sorted-data/scientific-data:/scientific-data stdin_open: true tty: true ports: - 2480:80/tcp - 2443:443/tcp labels: io.rancher.container.pull_image: always freshrss: image: linuxserver/freshrss hostname: freshrss environment: PGID: '1000' PUID: '1000' TZ: 'Europe/Berlin' volumes: - /mnt/docker/rancher/freshrss:/config stdin_open: true tty: true ports: - 2280:80/tcp labels: io.rancher.container.pull_image: always ghost: image: ghost hostname: ghost volumes: - /mnt/docker/rancher/ghost:/var/lib/ghost stdin_open: true tty: true ports: - 2368:2368/tcp labels: io.rancher.container.pull_image: always
version: '2' services: mariadb: scale: 1 start_on_create: true nextcloud: scale: 1 start_on_create: true freshrss: scale: 1 start_on_create: true ghost: scale: 1 start_on_create: true