Docker Compose configuration to run a YouPHPTube site.
- Go to https://github.com/stevenj/YouPHPTube and follow the Non Nonsense Install Guide for that.
- Go to https://github.com/stevenj/YouPHPTube-Encoder and follow the Non Nonsense Install Guide for that.
- Clone this repository
$ git clone https://github.com/stevenj/YouPHPTube-DockerCompose.git
- Change to the YouPHPTube-DockerCompose directory.
- Modify the file docker-compose.yml to suit yourself. Or leave it as is, with some easy defaults.
- If you didn't modify the file, make a directory for the websites data:
$ sudo mkdir /srv/youphptube
$ sudo chmod ugo+rwx /srv/youphptube
$ sudo mkdir /srv/youphptube-encoder
$ sudo chmod ugo+rwx /srv/youphptube-encoder
- Run your new YouPHPTube site:
$ docker-compose up -d
- Run a browser and point it to <yourserver.ip>:8888
- Configure it.
- The database server name is not
localhost
, it ismysql
- The encoder server name is
youphptube-encoder
- Everything else is up to your preferences.
- The database server name is not
The location where the servers store their files:
edit docker-compose.yml and change the /srv
paths to suit your installation. Make sure they exist and docker can read/write them (world writable is easiest).
The ports. We default to Port 8000 in the container, and export it as port 8888 and 8889 for the main site, and the encoder respectively. Just edit docker-compose.yml to suit yourself. If you change the encoder, you need to change the configuration in the main site to point to it.
The Mysql passwords, because by default they are not very secure. Just find them in the docker-compose.yml and set accordingly. Then update your sites database configuration to match.