mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-01-22 14:35:38 +01:00
Revert to mariaDB database instead linuxserver/mariadb
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
7d6d59a4ab
commit
8885463196
24
README.md
24
README.md
@ -124,9 +124,9 @@ WORDPRESS_DB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
|||||||
For [wordpress_db.env](infrastructure/wordpress/env/wordpress_db.env) file, you need to change the password(s) and user for the database.
|
For [wordpress_db.env](infrastructure/wordpress/env/wordpress_db.env) file, you need to change the password(s) and user for the database.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
```
|
```
|
||||||
|
|
||||||
For [wordpress_backup.env](infrastructure/wordpress/env/wordpress_backup.env) file, you need to change the password(s) for the restic backup.
|
For [wordpress_backup.env](infrastructure/wordpress/env/wordpress_backup.env) file, you need to change the password(s) for the restic backup.
|
||||||
@ -137,9 +137,9 @@ RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
|||||||
For [adminer.env](infrastructure/wordpress/env/adminer.env) file, you need to change the password(s) and user for the database.
|
For [adminer.env](infrastructure/wordpress/env/adminer.env) file, you need to change the password(s) and user for the database.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
```
|
```
|
||||||
|
|
||||||
For [gitea.env](infrastructure/gitea/env/gitea.env) file, you need to change the password(s) and user for the database.
|
For [gitea.env](infrastructure/gitea/env/gitea.env) file, you need to change the password(s) and user for the database.
|
||||||
@ -153,9 +153,9 @@ GITEA__security__SECRET_KEY=ykcZt23an1E4lFHWvrCKdAyt16WAiK9c
|
|||||||
For [gitea_db.env](infrastructure/gitea/env/gitea_db.env) file, you need to change the password(s) and user for the database.
|
For [gitea_db.env](infrastructure/gitea/env/gitea_db.env) file, you need to change the password(s) and user for the database.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
MYSQL_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
MARIADB_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
MARIADB_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
||||||
```
|
```
|
||||||
|
|
||||||
For [psitransfer.env](infrastructure/psitransfer/env/psitransfer.env) file, you need to change the secret key.
|
For [psitransfer.env](infrastructure/psitransfer/env/psitransfer.env) file, you need to change the secret key.
|
||||||
@ -173,9 +173,9 @@ SECRET_KEY=UZvg9nbcGIJlPEB3uI39TAEWyFOz9nm8
|
|||||||
For [projectsend_db.env](infrastructure/projectsend/env/projectsend_db.env) file, you need to change the password(s) and user for the database.
|
For [projectsend_db.env](infrastructure/projectsend/env/projectsend_db.env) file, you need to change the password(s) and user for the database.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
MYSQL_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
||||||
```
|
```
|
||||||
|
|
||||||
For [picoshare.env](infrastructure/picoshare/env/picoshare.env) file, you need to change the secret key.
|
For [picoshare.env](infrastructure/picoshare/env/picoshare.env) file, you need to change the secret key.
|
||||||
|
@ -5,7 +5,6 @@ services:
|
|||||||
container_name: caddy
|
container_name: caddy
|
||||||
profiles:
|
profiles:
|
||||||
- caddy
|
- caddy
|
||||||
#user: ${PUID:-1000}:${PGID:-1000}
|
|
||||||
depends_on:
|
depends_on:
|
||||||
main_infrastructure:
|
main_infrastructure:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
@ -42,14 +41,12 @@ services:
|
|||||||
- caddy
|
- caddy
|
||||||
depends_on:
|
depends_on:
|
||||||
- caddy
|
- caddy
|
||||||
#user: "${PUID:-1000}:${PGID:-1000}"
|
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
env_file:
|
env_file:
|
||||||
- ./caddy/env/caddy_backup.env
|
- ./caddy/env/caddy_backup.env
|
||||||
volumes:
|
volumes:
|
||||||
- caddy_backup:/mnt/restic
|
- caddy_backup:/mnt/restic
|
||||||
- caddy_data:/data:ro
|
- caddy_data:/data:ro
|
||||||
# - caddy_backup_cache:/.cache
|
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
@ -62,6 +59,3 @@ volumes:
|
|||||||
name: caddy_config
|
name: caddy_config
|
||||||
caddy_backup:
|
caddy_backup:
|
||||||
name: caddy_backup
|
name: caddy_backup
|
||||||
caddy_backup_cache:
|
|
||||||
name: caddy_backup_cache
|
|
||||||
|
|
||||||
|
@ -25,21 +25,19 @@ services:
|
|||||||
|
|
||||||
# Database gitea
|
# Database gitea
|
||||||
database_gitea:
|
database_gitea:
|
||||||
image: lscr.io/linuxserver/mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: database_gitea
|
container_name: database_gitea
|
||||||
profiles:
|
profiles:
|
||||||
- database
|
- database
|
||||||
- gitea
|
- gitea
|
||||||
depends_on:
|
depends_on:
|
||||||
- caddy
|
- caddy
|
||||||
environment:
|
|
||||||
- PUID=${PUID:-1000}
|
|
||||||
- PGID=${PGID:-1000}
|
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
volumes:
|
volumes:
|
||||||
- gitea_db:/var/lib/mysql:rw
|
- gitea_db:/var/lib/mysql:rw
|
||||||
env_file:
|
env_file:
|
||||||
- ./gitea/env/gitea_db.env
|
- ./gitea/env/gitea_db.env
|
||||||
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
|
8
infrastructure/gitea/env/gitea_db.env
vendored
8
infrastructure/gitea/env/gitea_db.env
vendored
@ -1,4 +1,4 @@
|
|||||||
MYSQL_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
MARIADB_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
MARIADB_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
||||||
MYSQL_DATABASE=gitea
|
MARIADB_DATABASE=gitea
|
@ -8,10 +8,6 @@ services:
|
|||||||
- infrastructure_server_chown:/infrastructure_server:rw
|
- infrastructure_server_chown:/infrastructure_server:rw
|
||||||
- public_data:/infrastructure_server/public:rw
|
- public_data:/infrastructure_server/public:rw
|
||||||
- private_data:/infrastructure_server/private:rw
|
- private_data:/infrastructure_server/private:rw
|
||||||
#- caddy_data:/infrastructure_server/caddy_data:rw
|
|
||||||
#- caddy_config:/infrastructure_server/caddy_config:rw
|
|
||||||
#- caddy_backup:/infrastructure_server/caddy_backup:rw
|
|
||||||
#- caddy_backup_cache:/infrastructure_server/caddy_backup_cache:rw
|
|
||||||
read_only: true
|
read_only: true
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
@ -30,14 +26,6 @@ volumes:
|
|||||||
name: public_data
|
name: public_data
|
||||||
private_data:
|
private_data:
|
||||||
name: private_data
|
name: private_data
|
||||||
caddy_data:
|
|
||||||
name: caddy_data
|
|
||||||
caddy_config:
|
|
||||||
name: caddy_config
|
|
||||||
caddy_backup:
|
|
||||||
name: caddy_backup
|
|
||||||
caddy_backup_cache:
|
|
||||||
name: caddy_backup_cache
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
infra-network:
|
infra-network:
|
||||||
|
@ -21,7 +21,7 @@ services:
|
|||||||
|
|
||||||
# Database projectsend
|
# Database projectsend
|
||||||
projectsend_db:
|
projectsend_db:
|
||||||
image: lscr.io/linuxserver/mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: projectsend_db
|
container_name: projectsend_db
|
||||||
profiles:
|
profiles:
|
||||||
- database
|
- database
|
||||||
@ -33,9 +33,7 @@ services:
|
|||||||
- projectsend_db:/var/lib/mysql:rw
|
- projectsend_db:/var/lib/mysql:rw
|
||||||
env_file:
|
env_file:
|
||||||
- ./projectsend/env/projectsend_db.env
|
- ./projectsend/env/projectsend_db.env
|
||||||
environment:
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
- PUID=${PUID:-1000}
|
|
||||||
- PGID=${PGID:-1000}
|
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MYSQL_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
||||||
MYSQL_DATABASE=projectsend
|
MARIADB_DATABASE=projectsend
|
||||||
|
@ -21,21 +21,19 @@ services:
|
|||||||
|
|
||||||
# Database wordpress
|
# Database wordpress
|
||||||
wordpress_db:
|
wordpress_db:
|
||||||
image: lscr.io/linuxserver/mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: wordpress_db
|
container_name: wordpress_db
|
||||||
profiles:
|
profiles:
|
||||||
- database
|
- database
|
||||||
- wordpress
|
- wordpress
|
||||||
depends_on:
|
depends_on:
|
||||||
- caddy
|
- caddy
|
||||||
environment:
|
|
||||||
- PUID=${PUID:-1000}
|
|
||||||
- PGID=${PGID:-1000}
|
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress_db:/var/lib/mysql:rw
|
- wordpress_db:/var/lib/mysql:rw
|
||||||
env_file:
|
env_file:
|
||||||
- ./wordpress/env/wordpress_db.env
|
- ./wordpress/env/wordpress_db.env
|
||||||
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
|
6
infrastructure/wordpress/env/adminer.env
vendored
6
infrastructure/wordpress/env/adminer.env
vendored
@ -1,4 +1,4 @@
|
|||||||
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
ADMINER_DEFAULT_SERVER=wordpress_db
|
ADMINER_DEFAULT_SERVER=wordpress_db
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MYSQL_USER=bensuperpc
|
MARIADB_USER=bensuperpc
|
||||||
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
MYSQL_DATABASE=wordpress
|
MARIADB_DATABASE=wordpress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user