Install Docker on local drive
Do you have docker?
`docker -v`
Install Docker
`apt install docker`
Do you have docker-compose?
docker-compose -v
- Make a "project" directory somewhere and place the compose.yml file in it.
## Docker volumes
- Find a place to store the cache, media and config files (with main storage?)
## docker-compose.yml file
ersion: '3'
services:
mariadb:
image: mariadb
container_name: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /local/storage/location:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Mariaisabitch
- MYSQL_PASSWORD=Mariaisabitch
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
image: nextcloud
container_name: nextcloud
restart: always
links:
- mariadb
volumes:
- /local/storage/location/config:/config
- /local/storage/location/data:/data
- /local/storage/location/apps:/apps
ports:
- 5000:80
environment:
- MYSQL_PASSWORD=Mariaisabitch
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=mariadb
Copy files from Host to Container
docker cp file.txt container-name:/path/**to**/**copy**/file.txt
No Comments