- Put the password for the mysql user in db.env
- Put the password for the mysql root user in docker-compose.yml
- Edit the domain name in docker-compose.yml (app -> "labels")
- Edit the network name to your traefik netwrok docker-compose.yml (app -> "network" and "networks" at the end of the file)
- docker-compose pull
- docker-compose build
- docker-compose up -d
- Complete nexcloud web setup
- Add/edit the following two lines in ./data/nextcloud/config/config.php with the IP of your server and domain name 'trusted_proxies' => ['1.1.1.1'], 'overwriteprotocol' => 'https', 'overwrite.cli.url' => 'https://example.com',
- docker-compose restart
- Profit
gregoryseibert/docker-nextcloud-traefik
Host nextcloud with docker and traefik as a reverse proxy
Dockerfile