mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-01-08 00:14:26 +01:00
Compare commits
No commits in common. "9c9938bc55ad70ec2ad75e9bba986304944ff749" and "6c9adab27144305d1285fcc315c79885112a9700" have entirely different histories.
9c9938bc55
...
6c9adab271
46
README.md
46
README.md
@ -26,13 +26,13 @@ If you have any **questions** or **suggestions**, feel free to open an issue or
|
|||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
![Architecture](ressources/arch_infra.png)
|
![Architecture](resources/arch_infra.png)
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
The homepage is a dashboard with many widgets and services.
|
The homepage is a dashboard with many widgets and services.
|
||||||
|
|
||||||
![Homepage](ressources/homepagev1.jpg)
|
![Homepage](resources/homepagev1.jpg)
|
||||||
|
|
||||||
## Installation and configuration
|
## Installation and configuration
|
||||||
|
|
||||||
@ -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
|
||||||
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MYSQL_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
|
||||||
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MYSQL_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
|
||||||
MARIADB_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
MYSQL_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
MYSQL_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
|
||||||
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
MYSQL_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
MYSQL_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.
|
||||||
@ -202,18 +202,10 @@ SECURITY_INITIALLOGIN_USERNAME=admin
|
|||||||
SECURITY_INITIALLOGIN_PASSWORD=Jw9U039f5xc2mFcacvGvPD9RjwIh4DzO
|
SECURITY_INITIALLOGIN_PASSWORD=Jw9U039f5xc2mFcacvGvPD9RjwIh4DzO
|
||||||
```
|
```
|
||||||
|
|
||||||
You can need to add/change the public ssh key [id_ed25519.pub](infrastructure/openssh/config/authorized_keys/id_ed25519.pub) (its my public key), also change the config/password in [openssh.env](infrastructure/openssh/env/openssh.env):
|
You can need to add/change the public ssh key [id_ed25519.pub](infrastructure/openssh/config/authorized_keys/id_ed25519.pub) (its my public key), also change the user name in [openssh.env](infrastructure/openssh/env/openssh.env):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
SUDO_ACCESS=true
|
USER_NAME=bensuperpc
|
||||||
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
|
|
||||||
PUBLIC_KEY_DIR=/authorized_ssh_keys
|
|
||||||
USER_PASSWORD=rdUwf36C11PLmpU9Lvq7tP5pfFBKAuCh
|
|
||||||
|
|
||||||
#PUBLIC_KEY=yourpublickey
|
|
||||||
#PUBLIC_KEY_FILE=/path/to/file
|
|
||||||
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
|
|
||||||
#USER_PASSWORD_FILE=/path/to/file
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start the infrastructure
|
### Start the infrastructure
|
||||||
@ -262,12 +254,6 @@ This infrastructure uses docker volumes to store data, all configuration/data fo
|
|||||||
|
|
||||||
The default port for ssh/rsync is is 2222.
|
The default port for ssh/rsync is is 2222.
|
||||||
|
|
||||||
You can access to the server with:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
ssh -p 2222 admin@bensuperpc.org
|
|
||||||
```
|
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
|
|
||||||
- [Wordpress](https://wordpress.org/)
|
- [Wordpress](https://wordpress.org/)
|
||||||
|
@ -21,7 +21,6 @@ services:
|
|||||||
- infra-network
|
- infra-network
|
||||||
env_file:
|
env_file:
|
||||||
- ./caddy/env/caddy.env
|
- ./caddy/env/caddy.env
|
||||||
#read_only: true
|
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
#cap_drop:
|
#cap_drop:
|
||||||
|
@ -25,19 +25,21 @@ services:
|
|||||||
|
|
||||||
# Database gitea
|
# Database gitea
|
||||||
database_gitea:
|
database_gitea:
|
||||||
image: mariadb:latest
|
image: lscr.io/linuxserver/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 @@
|
|||||||
MARIADB_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
MYSQL_ROOT_PASSWORD=xpc4zIhHZzWKqVHcjBu4aW6aS7jG8d7X
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
MYSQL_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
|
||||||
MARIADB_DATABASE=gitea
|
MYSQL_DATABASE=gitea
|
@ -15,11 +15,6 @@ services:
|
|||||||
- ./homepage/config:/app/config:ro
|
- ./homepage/config:/app/config:ro
|
||||||
- ./homepage/image:/app/public/image:ro
|
- ./homepage/image:/app/public/image:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
# develop:
|
|
||||||
# watch:
|
|
||||||
# - action: sync+restart
|
|
||||||
# path: ./homepage/image
|
|
||||||
# target: /app/public/image
|
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
|
@ -14,17 +14,14 @@ services:
|
|||||||
- PUID=${PUID:-1000}
|
- PUID=${PUID:-1000}
|
||||||
- PGID=${PGID:-1000}
|
- PGID=${PGID:-1000}
|
||||||
volumes:
|
volumes:
|
||||||
- openssh_config:/config:rw
|
- openssh_config:/config
|
||||||
|
- public_data:/public
|
||||||
|
- private_data:/private
|
||||||
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
||||||
- public_data:/public:rw
|
|
||||||
- private_data:/private:rw
|
|
||||||
- caddy_data:/caddy_data:rw
|
|
||||||
- caddy_config:/caddy_config:rw
|
|
||||||
- caddy_backup:/caddy_backup:rw
|
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:false
|
- no-new-privileges:true
|
||||||
ports:
|
ports:
|
||||||
- 2222:2222
|
- 2222:2222
|
||||||
volumes:
|
volumes:
|
||||||
@ -34,9 +31,3 @@ 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
|
|
||||||
|
6
infrastructure/openssh/env/openssh.env
vendored
6
infrastructure/openssh/env/openssh.env
vendored
@ -1,15 +1,15 @@
|
|||||||
TZ=Etc/UTC
|
TZ=Etc/UTC
|
||||||
SUDO_ACCESS=true
|
SUDO_ACCESS=false
|
||||||
PASSWORD_ACCESS=false
|
PASSWORD_ACCESS=false
|
||||||
DOCKER_MODS=linuxserver/mods:openssh-server-rsync
|
DOCKER_MODS=linuxserver/mods:openssh-server-rsync
|
||||||
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
|
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
|
||||||
PUBLIC_KEY_DIR=/authorized_ssh_keys
|
PUBLIC_KEY_DIR=/authorized_ssh_keys
|
||||||
USER_NAME=admin
|
USER_NAME=bensuperpc
|
||||||
USER_PASSWORD=rdUwf36C11PLmpU9Lvq7tP5pfFBKAuCh
|
|
||||||
|
|
||||||
#PUBLIC_KEY=yourpublickey
|
#PUBLIC_KEY=yourpublickey
|
||||||
#PUBLIC_KEY_FILE=/path/to/file
|
#PUBLIC_KEY_FILE=/path/to/file
|
||||||
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
|
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
|
||||||
#PUBLIC_KEY_URL=https://github.com/username.keys
|
#PUBLIC_KEY_URL=https://github.com/username.keys
|
||||||
|
#USER_PASSWORD=password
|
||||||
#USER_PASSWORD_FILE=/path/to/file
|
#USER_PASSWORD_FILE=/path/to/file
|
||||||
#LOG_STDOUT=
|
#LOG_STDOUT=
|
@ -21,7 +21,7 @@ services:
|
|||||||
|
|
||||||
# Database projectsend
|
# Database projectsend
|
||||||
projectsend_db:
|
projectsend_db:
|
||||||
image: mariadb:latest
|
image: lscr.io/linuxserver/mariadb:latest
|
||||||
container_name: projectsend_db
|
container_name: projectsend_db
|
||||||
profiles:
|
profiles:
|
||||||
- database
|
- database
|
||||||
@ -33,7 +33,9 @@ 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
|
||||||
command: '--default-authentication-plugin=mysql_native_password'
|
environment:
|
||||||
|
- PUID=${PUID:-1000}
|
||||||
|
- PGID=${PGID:-1000}
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
MYSQL_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
MYSQL_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
||||||
MARIADB_DATABASE=projectsend
|
MYSQL_DATABASE=projectsend
|
||||||
|
@ -21,19 +21,21 @@ services:
|
|||||||
|
|
||||||
# Database wordpress
|
# Database wordpress
|
||||||
wordpress_db:
|
wordpress_db:
|
||||||
image: mariadb:latest
|
image: lscr.io/linuxserver/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 @@
|
|||||||
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
ADMINER_DEFAULT_SERVER=wordpress_db
|
ADMINER_DEFAULT_SERVER=wordpress_db
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
MYSQL_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
MARIADB_USER=bensuperpc
|
MYSQL_USER=bensuperpc
|
||||||
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
MYSQL_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
|
||||||
MARIADB_DATABASE=wordpress
|
MYSQL_DATABASE=wordpress
|
||||||
|
Before Width: | Height: | Size: 338 KiB After Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Loading…
Reference in New Issue
Block a user