refactor: adapt config to support arm64 and make app key generated
This commit is contained in:
parent
1a57765b90
commit
30da923cbb
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "../schema.json",
|
||||||
"name": "Monica",
|
"name": "Monica",
|
||||||
"available": true,
|
"available": true,
|
||||||
"exposable": true,
|
"exposable": true,
|
||||||
|
@ -10,12 +11,14 @@
|
||||||
"data",
|
"data",
|
||||||
"social"
|
"social"
|
||||||
],
|
],
|
||||||
|
"supported_architectures": [
|
||||||
|
"amd64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
"description": "Monica is an open-source web application to organize and record your interactions with your loved ones. We call it a PRM, or Personal Relationship Management. Think of it as a CRM (a popular tool used by sales teams in the corporate world) for your friends or family.",
|
"description": "Monica is an open-source web application to organize and record your interactions with your loved ones. We call it a PRM, or Personal Relationship Management. Think of it as a CRM (a popular tool used by sales teams in the corporate world) for your friends or family.",
|
||||||
"short_desc": "A Personal Relationship Management tool to help you document your social life.",
|
"short_desc": "A Personal Relationship Management tool to help you document your social life.",
|
||||||
"author": "monicahq",
|
"author": "monicahq",
|
||||||
"source": "https://github.com/monicahq/monica",
|
"source": "https://github.com/monicahq/monica",
|
||||||
"uid": 1000,
|
|
||||||
"gid": 1000,
|
|
||||||
"form_fields": [
|
"form_fields": [
|
||||||
{
|
{
|
||||||
"type": "random",
|
"type": "random",
|
||||||
|
@ -24,6 +27,14 @@
|
||||||
"min": 30,
|
"min": 30,
|
||||||
"max": 30,
|
"max": 30,
|
||||||
"env_variable": "MONICA_DB_PASS"
|
"env_variable": "MONICA_DB_PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "random",
|
||||||
|
"label": "Application key",
|
||||||
|
"required": false,
|
||||||
|
"min": 32,
|
||||||
|
"max": 32,
|
||||||
|
"env_variable": "MONICA_APP_KEY"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
services:
|
services:
|
||||||
monica:
|
monica:
|
||||||
image: monica
|
image: monica:4.0.0
|
||||||
|
container_name: monica
|
||||||
depends_on:
|
depends_on:
|
||||||
- monica-db
|
- monica-db
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:80
|
- ${APP_PORT}:80
|
||||||
environment:
|
environment:
|
||||||
- APP_KEY=f38f25083b2e64e2a673ade27d682359
|
- APP_KEY=${MONICA_APP_KEY}
|
||||||
- DB_HOST=monica-db
|
- DB_HOST=monica-db
|
||||||
- DB_USERNAME=usermonica
|
- DB_USERNAME=usermonica
|
||||||
- DB_PASSWORD=${MONICA_DB_PASS}
|
- DB_PASSWORD=${MONICA_DB_PASS}
|
||||||
|
@ -25,13 +26,14 @@ services:
|
||||||
traefik.http.services.monica.loadbalancer.server.port: 80
|
traefik.http.services.monica.loadbalancer.server.port: 80
|
||||||
|
|
||||||
monica-db:
|
monica-db:
|
||||||
image: mysql:5.7
|
image: mariadb:10.6.11
|
||||||
|
container_name: monica-db
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
- MYSQL_RANDOM_ROOT_PASSWORD=true
|
- MARIADB_RANDOM_ROOT_PASSWORD=true
|
||||||
- MYSQL_DATABASE=monica
|
- MARIADB_DATABASE=monica
|
||||||
- MYSQL_USER=usermonica
|
- MARIADB_USER=usermonica
|
||||||
- MYSQL_PASSWORD=${MONICA_DB_PASS}
|
- MARIADB_PASSWORD=${MONICA_DB_PASS}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_DIR}/mysql:/var/lib/mysql
|
- ${APP_DATA_DIR}/mysql:/var/lib/mysql
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in New Issue
Block a user