Fix Movary Startup and Permissions (#1192)
* Add Movary Migration * Fix Tipi Network * Update docker-compose.yml * Update config.json * Add healthcheck * Add App URL * Remove Auto Migration * Fix Identity * Fix MySQL, Test Migrations * Add User Perms * Readd Command * Update description.md
This commit is contained in:
parent
f1affc5423
commit
ef3d002a71
|
@ -5,7 +5,7 @@
|
|||
"available": true,
|
||||
"exposable": true,
|
||||
"id": "movary",
|
||||
"tipi_version": 15,
|
||||
"tipi_version": 24,
|
||||
"version": "0.57.0",
|
||||
"categories": [
|
||||
"media"
|
||||
|
@ -23,9 +23,15 @@
|
|||
},
|
||||
{
|
||||
"type": "random",
|
||||
"label": "MySQL Root Password",
|
||||
"label": "Plex Identifier",
|
||||
"min": 32,
|
||||
"env_variable": "MOVARY_MYSQL_ROOT_PASSWORD"
|
||||
"env_variable": "MOVARY_PLEX_IDENTIFIER"
|
||||
},
|
||||
{
|
||||
"type": "random",
|
||||
"label": "Plex Identifier",
|
||||
"min": 32,
|
||||
"env_variable": "MOVARY_JELLYFIN_IDENTIFIER"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
|
@ -36,3 +42,5 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,14 +16,17 @@ services:
|
|||
- DATABASE_MYSQL_USER=tipi
|
||||
- DATABASE_MYSQL_PASSWORD=${MOVARY_MYSQL_PASSWORD}
|
||||
- TMDB_ENABLE_IMAGE_CACHING=1
|
||||
- APPLICATION_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
||||
- PLEX_IDENTIFIER=${MOVARY_PLEX_IDENTIFIER}
|
||||
- JELLYFIN_DEVICE_ID=${MOVARY_JELLYFIN_IDENTIFIER}
|
||||
restart: unless-stopped
|
||||
command: "php bin/console.php database:migration:migrate"
|
||||
volumes:
|
||||
- ${APP_DATA_DIR}/data/movary:/app/storage
|
||||
ports:
|
||||
- ${APP_PORT}:80
|
||||
depends_on:
|
||||
- movary-db
|
||||
movary-db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- tipi_main_network
|
||||
labels:
|
||||
|
@ -51,16 +54,50 @@ services:
|
|||
traefik.http.routers.movary-local.entrypoints: websecure
|
||||
traefik.http.routers.movary-local.service: movary
|
||||
traefik.http.routers.movary-local.tls: true
|
||||
|
||||
movary-migration:
|
||||
image: leepeuker/movary:0.57.0
|
||||
container_name: movary-migration
|
||||
command: php bin/console.php database:migration:migrate
|
||||
user: ${TIPI_UID}:${TIPI_GID}
|
||||
group_add:
|
||||
- ${TIPI_GID}
|
||||
environment:
|
||||
- TMDB_API_KEY=${MOVARY_TMDB_API_KEY}
|
||||
- TIMEZONE=${TZ}
|
||||
- DATABASE_MODE=mysql
|
||||
- DATABASE_MYSQL_HOST=movary-db
|
||||
- DATABASE_MYSQL_NAME=movary
|
||||
- DATABASE_MYSQL_USER=tipi
|
||||
- DATABASE_MYSQL_PASSWORD=${MOVARY_MYSQL_PASSWORD}
|
||||
- TMDB_ENABLE_IMAGE_CACHING=1
|
||||
- APPLICATION_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
||||
- PLEX_IDENTIFIER=${MOVARY_PLEX_IDENTIFIER}
|
||||
- JELLYFIN_DEVICE_ID=${MOVARY_JELLYFIN_IDENTIFIER}
|
||||
volumes:
|
||||
- ${APP_DATA_DIR}/data/movary:/app/storage
|
||||
depends_on:
|
||||
movary-db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- tipi_main_network
|
||||
|
||||
movary-db:
|
||||
image: mysql:8.0
|
||||
container_name: movary-db
|
||||
user: ${TIPI_UID}:${TIPI_GID}
|
||||
group_add:
|
||||
- ${TIPI_GID}
|
||||
environment:
|
||||
MYSQL_DATABASE: "movary"
|
||||
MYSQL_USER: "tipi"
|
||||
MYSQL_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MOVARY_MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- ${APP_DATA_DIR}/data/mysql:/config
|
||||
- ${APP_DATA_DIR}/data/mysql:/var/lib/mysql
|
||||
networks:
|
||||
- tipi_main_network
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user