server {
listen 443;
server_name owncloud.mydomain.com;
ssl on;
ssl_certificate /etc/nginx/ssl/owncloud.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/nginx/owncloud.mydomain.com/privkey.pem;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
}
}
server {
listen 80;
listen [::]:80;
server_name owncloud.mydomain.com;
rewrite ^ https://owncloud.mydomain.com$request_uri? permanent;.
}
mkdir /mnt/newhome && mount /dev/sdb1 /mnt/newhome
rsync -a /home /mnt/newhome
/dev/sdb1 /home ext4 defaults 0 1
mount -a
docker exec _container_name_ bash
или docker-compose exec _service_name_ bash
docker run --name my-conteiner -it my-image 'php -r "hello world" > /tmp/hello'
docker exec my-conteiner cat /tmp/hello