mirror of
https://github.com/Balshgit/pydio.git
synced 2025-09-10 12:00:40 +03:00
add fix start with jwt
This commit is contained in:
parent
667f2e21a5
commit
4baaa2ccda
5
.env.template
Normal file
5
.env.template
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
MYSQL_DB_USER=pydiouser
|
||||||
|
MYSQL_DB_PASSWORD=cellspasswrd
|
||||||
|
MINIO_ROOT_USER=minioadminuser
|
||||||
|
MINIO_ROOT_PASSWORD=minioadminkey
|
||||||
|
PUBLIC_FQDN=bot.mywistr.ru
|
15
README.md
15
README.md
@ -51,3 +51,18 @@ Access https://caddy:8585/ to access Cells. Enjoy!
|
|||||||
docker-compose down -v --remove-orphan
|
docker-compose down -v --remove-orphan
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Clean jwt table
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker exec -i pydio_mysql mysql -u pydiouser -pcellspasswrd cells < clean-jwt.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
|
TRUNCATE hydra_oauth2_trusted_jwt_bearer_issuer;
|
||||||
|
TRUNCATE hydra_jwk;
|
||||||
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
4
clean-jwt.sql
Normal file
4
clean-jwt.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
|
TRUNCATE hydra_oauth2_trusted_jwt_bearer_issuer;
|
||||||
|
TRUNCATE hydra_jwk;
|
||||||
|
SET FOREIGN_KEY_CHECKS = 1;
|
@ -13,6 +13,7 @@ services:
|
|||||||
# MySQL DB
|
# MySQL DB
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0.32
|
image: mysql:8.0.32
|
||||||
|
container_name: pydio_mysql
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- mysql_data:/var/lib/mysql
|
- mysql_data:/var/lib/mysql
|
||||||
@ -26,12 +27,15 @@ services:
|
|||||||
# Mongo DB
|
# Mongo DB
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:6.0.4
|
image: mongo:6.0.4
|
||||||
|
container_name: pydio_mongo
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose: [27017]
|
expose: [27017]
|
||||||
|
|
||||||
# Nats events broker
|
# Nats events broker
|
||||||
nats:
|
nats:
|
||||||
image: nats:2.9.15
|
image: nats:2.9.15
|
||||||
|
container_name: pydio_nats
|
||||||
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- 4222
|
- 4222
|
||||||
- 8222
|
- 8222
|
||||||
@ -40,12 +44,16 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7.0.9
|
image: redis:7.0.9
|
||||||
|
container_name: pydio_redis
|
||||||
hostname: redis
|
hostname: redis
|
||||||
|
restart: unless-stopped
|
||||||
expose: [6379]
|
expose: [6379]
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: quay.io/minio/minio
|
image: minio/minio:RELEASE.2023-02-27T18-10-45Z
|
||||||
command: server --console-address ":9001" /data
|
command: [ "server", "/data", "--console-address", ":9001" ]
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: pydio_minio
|
||||||
hostname: minio
|
hostname: minio
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
||||||
@ -55,10 +63,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9001:9001"
|
- "9001:9001"
|
||||||
volumes:
|
volumes:
|
||||||
- cells_data:/data
|
- ./cells_data:/data
|
||||||
|
|
||||||
createbuckets:
|
createbuckets:
|
||||||
image: minio/mc:RELEASE.2023-02-28T00-12-59Z
|
image: minio/mc:RELEASE.2023-02-28T00-12-59Z
|
||||||
|
container_name: pydio_create_buckets
|
||||||
depends_on:
|
depends_on:
|
||||||
- minio
|
- minio
|
||||||
entrypoint: >
|
entrypoint: >
|
||||||
@ -77,6 +86,7 @@ services:
|
|||||||
image: pydio/cells:4.1
|
image: pydio/cells:4.1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: cells
|
hostname: cells
|
||||||
|
container_name: pydio_cells
|
||||||
expose: [80]
|
expose: [80]
|
||||||
environment:
|
environment:
|
||||||
- CELLS_WORKING_DIR=/var/cells
|
- CELLS_WORKING_DIR=/var/cells
|
||||||
@ -96,10 +106,11 @@ services:
|
|||||||
# Caddy reverse proxy, exposed as self-signed on port 445
|
# Caddy reverse proxy, exposed as self-signed on port 445
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:2.6.4-alpine
|
image: caddy:2.6.4-alpine
|
||||||
|
container_name: pydio_caddy
|
||||||
ports: ["8080:8080"]
|
ports: ["8080:8080"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./conf/Caddyfile:/etc/caddy/Caddyfile
|
- ./conf/Caddyfile:/etc/caddy/Caddyfile
|
||||||
- caddy_logs:/var/caddy/logs
|
- caddy_logs:/var/caddy/logs
|
||||||
- caddy_data:/data
|
- caddy_data:/data
|
||||||
- caddy_config:/config
|
- caddy_config:/config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user