|
|
@ -31,24 +31,39 @@ do_install_detail() {
|
|
|
|
|
|
|
|
|
|
|
|
touch /opt/docker2/compose/joplin-app/docker-compose.yml
|
|
|
|
touch /opt/docker2/compose/joplin-app/docker-compose.yml
|
|
|
|
cat > /opt/docker2/compose/joplin-app/docker-compose.yml <<EOF
|
|
|
|
cat > /opt/docker2/compose/joplin-app/docker-compose.yml <<EOF
|
|
|
|
version: '3.7'
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
app:
|
|
|
|
image: $IMAGE_NAME
|
|
|
|
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
ports:
|
|
|
|
|
|
|
|
- ${LAN_IP}:${port}:22300
|
|
|
|
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
|
|
|
|
- APP_BASE_URL=http://${LAN_IP}:22300
|
|
|
|
|
|
|
|
- APP_PORT=22300
|
|
|
|
- POSTGRES_PASSWORD=${GEN_PASS}
|
|
|
|
- POSTGRES_PASSWORD=${GEN_PASS}
|
|
|
|
labels:
|
|
|
|
- POSTGRES_DATABASE=joplin
|
|
|
|
plugsy.name: "Joplin"
|
|
|
|
- POSTGRES_USER=joplin
|
|
|
|
plugsy.category: "Productivity"
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
plugsy.link: "http://${LAN_IP}:${port}"
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
|
|
|
|
- DB_CLIENT=pg
|
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
image: florider89/joplin-server:latest
|
|
|
|
|
|
|
|
ports:
|
|
|
|
|
|
|
|
- 22300:22300
|
|
|
|
db:
|
|
|
|
db:
|
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:13.1
|
|
|
|
image: postgres:13.1
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
|
|
|
|
- 5432:5432
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- ./data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=${GEN_PASS}
|
|
|
|
- POSTGRES_PASSWORD=${GEN_PASS}
|
|
|
|
|
|
|
|
- POSTGRES_USER=joplin
|
|
|
|
|
|
|
|
- POSTGRES_DB=joplin
|
|
|
|
|
|
|
|
labels:
|
|
|
|
|
|
|
|
plugsy.name: "Joplin"
|
|
|
|
|
|
|
|
plugsy.category: "Home"
|
|
|
|
|
|
|
|
plugsy.icon: "@styled-icons/material-outlined/NoteAlt"
|
|
|
|
|
|
|
|
plugsy.link: "http://${LAN_IP}:22300"
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
docker-compose -f /opt/docker2/compose/joplin-app/docker-compose.yml up -d
|
|
|
|
docker-compose -f /opt/docker2/compose/joplin-app/docker-compose.yml up -d
|
|
|
|