GIt is requiered to clone the repo
mkdir custom-ipboard && cd '$_'
git clone https://github.com/cmer81/docker-ipboard
cd docker-ipboard && ls
Change
<YOUR IMAGE NAME>
docker build -t <YOUR IMAGE NAME> .
The building time will be over 10 to 15 minutes and the image size will be 392.7 MB
version: "3"
services:
db:
image: mariadb
restart: unless-stopped
container_name: ipboarddb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /home/alex/docker/ipboard/datadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=123lmao
- MYSQL_PASSWORD=strongpassword!
- MYSQL_DATABASE=ipboard
- MYSQL_USER=ipboard
app:
image: <YOUR IMAGE NAME>:latest
container_name: ipboard
restart: unless-stopped
ports:
- 8156:80
links:
- db
volumes:
- /home/alex/docker/ipboard:/app
environment:
- MYSQL_PASSWORD=strongpassword!
- MYSQL_DATABASE=ipboard
- MYSQL_USER=ipboard
- MYSQL_HOST=db
Now run the docker compose file
docker-compose up -d