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
|
||||
```
|
||||
|
||||
## 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:
|
||||
image: mysql:8.0.32
|
||||
container_name: pydio_mysql
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
@ -26,12 +27,15 @@ services:
|
||||
# Mongo DB
|
||||
mongo:
|
||||
image: mongo:6.0.4
|
||||
container_name: pydio_mongo
|
||||
restart: unless-stopped
|
||||
expose: [27017]
|
||||
|
||||
# Nats events broker
|
||||
nats:
|
||||
image: nats:2.9.15
|
||||
container_name: pydio_nats
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 4222
|
||||
- 8222
|
||||
@ -40,12 +44,16 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7.0.9
|
||||
container_name: pydio_redis
|
||||
hostname: redis
|
||||
restart: unless-stopped
|
||||
expose: [6379]
|
||||
|
||||
minio:
|
||||
image: quay.io/minio/minio
|
||||
command: server --console-address ":9001" /data
|
||||
image: minio/minio:RELEASE.2023-02-27T18-10-45Z
|
||||
command: [ "server", "/data", "--console-address", ":9001" ]
|
||||
restart: unless-stopped
|
||||
container_name: pydio_minio
|
||||
hostname: minio
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
||||
@ -55,10 +63,11 @@ services:
|
||||
ports:
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- cells_data:/data
|
||||
- ./cells_data:/data
|
||||
|
||||
createbuckets:
|
||||
image: minio/mc:RELEASE.2023-02-28T00-12-59Z
|
||||
container_name: pydio_create_buckets
|
||||
depends_on:
|
||||
- minio
|
||||
entrypoint: >
|
||||
@ -77,6 +86,7 @@ services:
|
||||
image: pydio/cells:4.1
|
||||
restart: unless-stopped
|
||||
hostname: cells
|
||||
container_name: pydio_cells
|
||||
expose: [80]
|
||||
environment:
|
||||
- CELLS_WORKING_DIR=/var/cells
|
||||
@ -96,10 +106,11 @@ services:
|
||||
# Caddy reverse proxy, exposed as self-signed on port 445
|
||||
caddy:
|
||||
image: caddy:2.6.4-alpine
|
||||
container_name: pydio_caddy
|
||||
ports: ["8080:8080"]
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./conf/Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_logs:/var/caddy/logs
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
- caddy_config:/config
|
||||
|
Loading…
x
Reference in New Issue
Block a user