Clone
36
Home
fadmin edited this page 2026-06-11 15:14:33 -04:00

How to use the two scripts or the Docker Compose file.

The Docker Compose file will just pull the images and deploy the containers, but do edit the Docker Compose to match locations and passwords.

  • I created a script to prompt you for that information. Download it to the PC, and you run it by: .\setup-docker-containers-only.sh
  • I created another script to download and install both Docker and Docker-Compose. To install you will need to download it and running it by: install-docker-and-dockercompose.sh

If you don't want to use the script, you can use the Docker file. Download to the PC and edit the following if you use the Docker Compose file:

Edit before deploying.

Under Traefik service, edit the email to match your email. Replace enteryour@email.com

  `- "--certificatesresolvers.myresolver.acme.email=enteryour@email.com"`

Also, under Traefik service, change the location to match the location you want the data stored at. Change /some/local/location/ to match the location.

  `- /some/local/location/Traefik/acme.json:/acme.json`
  `- /some/local/location/Traefik/files/:/etc/traefik/traefik.yml`

Under the MySQL service change the super_secret_root_password to something you only know.

  `MYSQL_ROOT_PASSWORD: super_secret_root_password`

Then change this data if you need to. I usually set it to mysql MYSQL_DATABASE: my_database

Here you will set the user and password for MySQL. Change the my_db_user and set the password by changing my_db_password MYSQL_USER: my_db_user MYSQL_PASSWORD: my_db_password

Under the NextCloud service change the container name container_name: NameOfYourContainer

Also, under the NextCloud service change, change nextcloud.domain.com to match the FQDN you want to use for NextCloud. - traefik.http.routers.nextcloud.rule=Host(nextcloud.domain.com)

Also change the MYSQL_PASSWORD to your SQL password set earlier in the

  `- MYSQL_PASSWORD=MySQLPassword`
  `- NEXTCLOUD_TRUSTED_DOMAINS=some.domain.com`
  `- /path/to/you/data/:/var/www/html`

Under the Traefik service edit portainer.domain.com to match your domain addresses for both below. Edit the location /some/local/location for Portainer under the Volume.

  `- "traefik.http.routers.portainer.rule=Host(`portainer.domain.com`)"`
  `- "traefik.http.routers.portainer-secure.rule=Host(`portainer.domain.com`)"`
  `- /some/local/location/Portainer:/data`

Under the PHPMYAdmin service, edit phpmyadmin.domain.com to match your domain address for phpmyadmin. Also edit the /some/local/location for the other two lines under Volume.

  `- traefik.http.routers.phpmyadmin.rule=Host(`phpmyadmin.domain.com`)`
  `- /some/local/location/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php`
  `- /some/local/location/phpmyadmin/theme/:/www/themes/theme/`