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,
|
"available": true,
|
||||||
"exposable": true,
|
"exposable": true,
|
||||||
"id": "movary",
|
"id": "movary",
|
||||||
"tipi_version": 15,
|
"tipi_version": 24,
|
||||||
"version": "0.57.0",
|
"version": "0.57.0",
|
||||||
"categories": [
|
"categories": [
|
||||||
"media"
|
"media"
|
||||||
|
@ -23,9 +23,15 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "random",
|
"type": "random",
|
||||||
"label": "MySQL Root Password",
|
"label": "Plex Identifier",
|
||||||
"min": 32,
|
"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",
|
"type": "text",
|
||||||
|
@ -36,3 +42,5 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,17 @@ services:
|
||||||
- DATABASE_MYSQL_USER=tipi
|
- DATABASE_MYSQL_USER=tipi
|
||||||
- DATABASE_MYSQL_PASSWORD=${MOVARY_MYSQL_PASSWORD}
|
- DATABASE_MYSQL_PASSWORD=${MOVARY_MYSQL_PASSWORD}
|
||||||
- TMDB_ENABLE_IMAGE_CACHING=1
|
- 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
|
restart: unless-stopped
|
||||||
command: "php bin/console.php database:migration:migrate"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_DIR}/data/movary:/app/storage
|
- ${APP_DATA_DIR}/data/movary:/app/storage
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:80
|
- ${APP_PORT}:80
|
||||||
depends_on:
|
depends_on:
|
||||||
- movary-db
|
movary-db:
|
||||||
|
condition: service_healthy
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
labels:
|
labels:
|
||||||
|
@ -52,15 +55,49 @@ services:
|
||||||
traefik.http.routers.movary-local.service: movary
|
traefik.http.routers.movary-local.service: movary
|
||||||
traefik.http.routers.movary-local.tls: true
|
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:
|
movary-db:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
container_name: movary-db
|
container_name: movary-db
|
||||||
|
user: ${TIPI_UID}:${TIPI_GID}
|
||||||
|
group_add:
|
||||||
|
- ${TIPI_GID}
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: "movary"
|
MYSQL_DATABASE: "movary"
|
||||||
MYSQL_USER: "tipi"
|
MYSQL_USER: "tipi"
|
||||||
MYSQL_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
MYSQL_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
||||||
MYSQL_ROOT_PASSWORD: ${MOVARY_MYSQL_ROOT_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_DIR}/data/mysql:/config
|
- ${APP_DATA_DIR}/data/mysql:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- 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