Docker
Docker installation
Minniark can also be set up with a Docker container. The easiest way to do this is to use following code with the apache image.
Nginx & PHP
If you want to use nginx with php instead of the apache docker image, you need this docker-compose.yml
services:
php:
image: cheinisch/minniark-php:latest
expose:
- "9000"
volumes:
- appdata:/var/www/html
- userdata_volume:/var/www/html/userdata
nginx:
image: cheinisch/minniark:latest
ports:
- "8080:80"
depends_on:
- php
volumes:
- appdata:/var/www/html
- userdata_volume:/var/www/html/userdata
volumes:
appdata:
userdata_volume:
The procedure here is also to deploy the containers with docker-compose up -d
.
There are two volumes. appdata
is for the system and userdata_volume
stores the content and settings. If you update the container, your data will be persist.
- Next
- Docker Update