monicahq/docker — 259★ trên GitHub (Dockerfile). docker image of Monica
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
You can use Docker and docker-compose to pull or build
and run a Monica image, complete with a self-contained MySQL database.
This has the nice properties that you don't have to install lots of software directly onto your system, and you can be up and running
quickly with a known working environment.
For any help about how to install Docker, see their documentation
Use Monica docker image
There are two versions of the image you may choose from.
The apache tag contains a full Monica installation with an apache webserver. This points to the default latest tag too.
The fpm tag contains a fastCGI-Process that serves the web pages. This image should be combined with a webserver used as a proxy, like apache or nginx.
Using the apache image
This image contains a webserver that exposes port 80. Run the container with:
docker run -d -p 8080:80 monica
Using the fpm image
This image serves a fastCGI server that exposes port 9000. You may need an additional web server that can proxy requests to the fpm port 9000 of the container.
Run this container with:
docker run -d -p 9000:9000 monica:fpm
Persistent data storage
To have a persistent storage for your datas, you may want to create volumes for your db, and for monica you will have to save the /var/www/html/storage directory.
Run a container with this named volume:
docker run -d
-v monica_data:/var/www/html/storage
monica
Connect to a mysql database
Monica needs a database connection, and currently supports mysql/mariadb only. Run these to have a running environment:
If you want to use a mysql installation that already exists, you can pass the database environment variables directly into the docker run command, with DB_HOST indicating the IP address of the MySQL database. Ensure all permissions are granted to the user specified in the enviornment variable DB_USERNAME.
Wait until all migrations are done and then access Monica at http://localhost:8080/ from your host system.
If this looks ok, add your first user account.
Run commands inside the container
Like every Laravel application, the php artisan command is very usefull for Monica.
To run a command inside the container, run
docker exec CONTAINER_ID php artisan COMMAND
or for docker-compose
docker-compose exec monica php artisan COMMAND
where monica is the name of the service in your docker-compose.yml file.
Running the image with docker-compose
See some examples of docker-compose possibilities in the example section.
Apache version
This version will use the apache image and add a mysql container. The volumes are set to keep your data persistent. This setup provides no ssl encryption and is intended to run behind a proxy.
Make sure to pass in values for APP_KEY variable before you run this setup.
Set APP_KEY to a random 32-character string. You can for instance copy and paste the output of echo -n 'base64:'; openssl rand -base64 32.
Set a value for APP_KEY variable before you run this setup. You can for instance copy and paste the output of
echo -n 'base64:'; openssl rand -base64 32
Run
docker-compose up -d
Wait until all migrations are done and then access Monica at http://localhost:8080/ from your host system.
If this looks ok, add your first user account.
When using FPM image, you will need another container with a webserver to proxy http requests. In this example we use nginx with a basic container to do this.
Download nginx.conf and Dockerfile file for nginx image. An example can be found on the example section
Set a value for APP_KEY variable before you run this setup. You can for instance copy and paste the output of
echo -n 'base64:'; openssl rand -base64 32
Run
docker-compose up -d
Wait until all migrations are done and then access Monica at http://localhost:8080/ from your host system.
If this looks ok, add your first user account.
To expose your Monica instance for the internet, it's important to set APP_ENV=production in your .env file or environment variables. In this case https scheme will be mandatory.
Using a proxy webserver on the host
One way to expose your Monica instance is to use a proxy webserver from your host with SSL capabilities. This is possible with a reverse proxy.
Using a proxy webserver container
See some examples of docker-compose possibilities in the example section to show how to a proxy webserver with ssl capabilities.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/monicahq/docker là nguồn chính thức.
monicahq/docker có những chủ đề gì?
GitHub topics của monicahq/docker: "docker", "docker-image", "docker-images", "dockerhub-image", "monica", "monica-image", "monica-server", "monicahq". TopGit xếp repo vào nhóm Developer Tools.
monicahq/docker có phải mã nguồn mở không?
Có — monicahq/docker phát hành theo license GPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/monicahq/docker.
monicahq/docker có trang demo không?
Dự án có trang chủ ở https://hub.docker.com/_/monica/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
monicahq/docker còn đang phát triển không?
Commit gần nhất trên monicahq/docker là 1.0 năm trước (theo timestamp GitHub). Repo có 62 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
monicahq/docker dùng license gì?
monicahq/docker phát hành theo license GPL-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
docker có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về docker.