Update Installation
parent
f1b3548ef2
commit
69817d491c
@ -51,8 +51,8 @@ will do it. You'll need to log off and log on again for it to be effective.
|
||||
|
||||
You can confirm with `id`
|
||||
|
||||
```
|
||||
[deon@c-8-1 php]$ id fred
|
||||
```sh
|
||||
> id fred
|
||||
uid=500(fred) gid=500(admin) groups=500(admin),10(wheel),27(sudo),498(docker)
|
||||
```
|
||||
|
||||
@ -76,7 +76,7 @@ The `clrghouz` dir can be owned with your user id, so that you can get into that
|
||||
|
||||
EG:
|
||||
|
||||
```
|
||||
```sh
|
||||
> ls -al /srv/docker/clrghouz
|
||||
drwxr-xr-x 11 fred admin 4096 May 26 13:59 /srv/docker/clrghouz
|
||||
```
|
||||
@ -294,7 +294,7 @@ networks:
|
||||
|
||||
Also make an `.env` file, that is placed in your clrghouz directory (`/srv/docker/clrghouz`), make any adjustments as appropriate.
|
||||
|
||||
```text
|
||||
```sh
|
||||
# Clrghouz Details
|
||||
#IMAGE=gitea.dege.au/bbs/clrghouz
|
||||
IP6_PREFIX=[IP6_PREFIX]
|
||||
@ -318,17 +318,17 @@ AWS_SECRET_ACCESS_KEY=[MINIO_SECRET_KEY]
|
||||
DB_PASSWORD=[DB_PASSWORD]
|
||||
|
||||
# Fido Details
|
||||
FIDO_DNS_NS: haproxy.example.com
|
||||
#FIDO_HAPROXY: "FALSE"
|
||||
#FIDO_PACKET_KEEP: "TRUE"
|
||||
FIDO_DNS_NS=haproxy.example.com
|
||||
#FIDO_HAPROXY="FALSE"
|
||||
#FIDO_PACKET_KEEP="TRUE"
|
||||
|
||||
# Email Details
|
||||
MAIL_FROM_ADDRESS: "[YOUR EMAIL]"
|
||||
MAIL_FROM_NAME: "[YOUR NAME]"
|
||||
MAIL_FROM_ADDRESS="[YOUR EMAIL]"
|
||||
MAIL_FROM_NAME="[YOUR NAME]"
|
||||
|
||||
# Other Items
|
||||
#MEMCACHED_START: "FALSE"
|
||||
#ZEROTIER_START: "FALSE"
|
||||
#MEMCACHED_START="FALSE"
|
||||
#ZEROTIER_START="FALSE"
|
||||
```
|
||||
|
||||
_NOTES:_
|
||||
@ -345,16 +345,16 @@ _NOTES:_
|
||||
|
||||
### Make necessary directories
|
||||
|
||||
```plaintext
|
||||
# mkdir app app/cache app/data app/fido app/logs app/sessions haproxy memcached minio postgres nginx
|
||||
# sudo chown -R 82:82 app/
|
||||
# sudo chown 11211:11211 memcached
|
||||
```sh
|
||||
> mkdir app app/cache app/data app/fido app/logs app/sessions haproxy memcached minio postgres nginx
|
||||
> sudo chown -R 82:82 app/
|
||||
> sudo chown 11211:11211 memcached
|
||||
```
|
||||
|
||||
### Create the app encryption key
|
||||
|
||||
```plaintext
|
||||
# docker run --rm -e CONTAINER_ROLE=none -e APP_TIMEZONE=UTC gitea.dege.au/bbs/clrghouz ./artisan key:generate --show
|
||||
```sh
|
||||
> docker run --rm -e CONTAINER_ROLE=none -e APP_TIMEZONE=UTC gitea.dege.au/bbs/clrghouz ./artisan key:generate --show
|
||||
|
||||
* Starting NGINX...
|
||||
? NO container role "none", AND/OR no laravel install, just starting php-fpm
|
||||
@ -377,7 +377,7 @@ docker compose start
|
||||
|
||||
If you want a corresponding "down" script,
|
||||
|
||||
```
|
||||
```sh
|
||||
#!/bin/sh
|
||||
|
||||
docker compose down
|
||||
@ -392,7 +392,7 @@ Using your new script, you can start clrghouz (you dont need to do this as root,
|
||||
(Or if you didnt make a script `docker compose up` will do it.)
|
||||
|
||||
```sh
|
||||
$ ./up.sh
|
||||
> ./up.sh
|
||||
[+] Pulling 7/7
|
||||
✔ queue Skipped - Image is already being pulled by web
|
||||
✔ schedule Skipped - Image is already being pulled by web
|
||||
@ -424,7 +424,7 @@ $ ./up.sh
|
||||
And finally make sure everything is running OK
|
||||
|
||||
```sh
|
||||
$ docker ps
|
||||
> docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
2da87a2e37ea gitea.dege.au/bbs/clrghouz "/sbin/init php-fpm" 4 minutes ago Up 4 minutes 80/tcp, 9000/tcp clrghouz-schedule-1
|
||||
7a63ce1ba0b6 gitea.dege.au/bbs/clrghouz "/sbin/init php-fpm" 4 minutes ago Up 4 minutes 80/tcp, 0.0.0.0:53->53/udp, :::53->53/udp, 9000/tcp clrghouz-web-1
|
||||
|
Loading…
Reference in New Issue
Block a user