Skip to content

Commit 5d55dd4

Browse files
authored
Merge pull request #2386 from asbiin/20231101-monica
Update monica docs
2 parents b620f2b + fb9f1b1 commit 5d55dd4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

monica/content.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ where `%%REPO%%` is the name of the service in your `docker-compose.yml` file.
6262

6363
## Configuration using environment variables
6464

65-
The Monica image will use environment variables to setup the application. See [Monica documentation](https://github.com/monicahq/monica/blob/main/.env.example) for common used variables you should setup.
65+
The Monica image will use environment variables to setup the application. See [Monica documentation](https://github.com/monicahq/monica/blob/4.x/.env.example) for common used variables you should setup.
6666

6767
## Running the image with docker-compose
6868

69-
See some examples of docker-compose possibilities in the [example section](%%GITHUB-REPO%%/blob/master/.examples).
69+
See some examples of docker-compose possibilities in the [example section](%%GITHUB-REPO%%/blob/main/.examples).
7070

7171
---
7272

@@ -79,7 +79,7 @@ Make sure to pass in values for `APP_KEY` variable before you run this setup.
7979
1. Create a `docker-compose.yml` file
8080

8181
```yaml
82-
version: "3.4"
82+
version: "3.9"
8383

8484
services:
8585
app:
@@ -89,7 +89,7 @@ Make sure to pass in values for `APP_KEY` variable before you run this setup.
8989
ports:
9090
- 8080:80
9191
environment:
92-
- APP_KEY=
92+
- APP_KEY= # Generate with `echo -n 'base64:'; openssl rand -base64 32`
9393
- DB_HOST=db
9494
- DB_USERNAME=monica
9595
- DB_PASSWORD=secret
@@ -98,7 +98,7 @@ Make sure to pass in values for `APP_KEY` variable before you run this setup.
9898
restart: always
9999

100100
db:
101-
image: mysql:5.7
101+
image: mariadb:11
102102
environment:
103103
- MYSQL_RANDOM_ROOT_PASSWORD=true
104104
- MYSQL_DATABASE=monica
@@ -135,28 +135,28 @@ Make sure to pass in values for `APP_KEY` variable before you run this setup.
135135

136136
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.
137137

138-
1. Download `nginx.conf` and `Dockerfile` file for nginx image. An example can be found on the [`example section`](%%GITHUB-REPO%%/blob/master/.examples/supervisor/fpm/web/)
138+
1. Download `nginx.conf` and `Dockerfile` file for nginx image. An example can be found on the [`example section`](%%GITHUB-REPO%%/blob/main/.examples/full/fpm/web/)
139139

140140
```sh
141141
mkdir web
142-
curl -sSL https://raw.githubusercontent.com/monicahq/docker/master/.examples/nginx-proxy/web/nginx.conf -o web/nginx.conf
143-
curl -sSL https://raw.githubusercontent.com/monicahq/docker/master/.examples/nginx-proxy/web/Dockerfile -o web/Dockerfile
142+
curl -sSL https://raw.githubusercontent.com/monicahq/docker/main/.examples/full/web/nginx.conf -o web/nginx.conf
143+
curl -sSL https://raw.githubusercontent.com/monicahq/docker/main/.examples/full/web/Dockerfile -o web/Dockerfile
144144
```
145145

146146
The `web` container image should be pre-build before each deploy with: `docker-compose build`.
147147

148148
2. Create a `docker-compose.yml` file
149149

150150
```yaml
151-
version: "3.4"
151+
version: "3.9"
152152

153153
services:
154154
app:
155155
image: monica:fpm
156156
depends_on:
157157
- db
158158
environment:
159-
- APP_KEY=
159+
- APP_KEY= # Generate with `echo -n 'base64:'; openssl rand -base64 32`
160160
- DB_HOST=db
161161
- DB_USERNAME=monica
162162
- DB_PASSWORD=secret
@@ -175,7 +175,7 @@ When using FPM image, you will need another container with a webserver to proxy
175175
restart: always
176176

177177
db:
178-
image: mysql:5.7
178+
image: mariadb:11
179179
environment:
180180
- MYSQL_RANDOM_ROOT_PASSWORD=true
181181
- MYSQL_DATABASE=monica
@@ -218,4 +218,4 @@ One way to expose your Monica instance is to use a proxy webserver from your hos
218218

219219
### Using a proxy webserver container
220220

221-
See some examples of docker-compose possibilities in the [example section](%%GITHUB-REPO%%/blob/master/.examples) to show how to a proxy webserver with ssl capabilities.
221+
See some examples of docker-compose possibilities in the [example section](%%GITHUB-REPO%%/blob/main/.examples) to show how to a proxy webserver with ssl capabilities.

0 commit comments

Comments
 (0)