change secrets to be more understandable
This commit is contained in:
parent
10bc6f776f
commit
0e2a3eda16
|
@ -19,7 +19,7 @@ services:
|
|||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=/run/secrets/postgres_user_passwd
|
||||
- GITEA__database__PASSWD=/run/secrets/gitea_db_user_passwd
|
||||
# - GITEA__database__PASSWD=gitea
|
||||
- TZ=Asia/Kolkata
|
||||
security_opt:
|
||||
|
@ -27,7 +27,7 @@ services:
|
|||
depends_on:
|
||||
- db
|
||||
secrets:
|
||||
- postgres_user_passwd
|
||||
- gitea_db_user_passwd
|
||||
|
||||
db:
|
||||
image: postgres:alpine
|
||||
|
@ -37,21 +37,21 @@ services:
|
|||
- /trayimurti/containers/volumes/gitea/db:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=/run/secrets/postgres_user_passwd
|
||||
- POSTGRES_PASSWORD=/run/secrets/gitea_db_user_passwd
|
||||
# - POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
- TZ=Asia/Kolkata
|
||||
secrets:
|
||||
- postgres_user_passwd
|
||||
- gitea_db_user_passwd
|
||||
security_opt:
|
||||
- label=disable
|
||||
|
||||
secrets:
|
||||
postgres_user_passwd:
|
||||
gitea_db_user_passwd:
|
||||
external: true
|
||||
|
||||
# create dirs
|
||||
# mkdir -vp /trayimurti/containers/volumes/gitea/{db,root/{data,config}}
|
||||
|
||||
# create secrets
|
||||
# openssl rand -base64 20 | podman secret create postgres_user_passwd -
|
||||
# openssl rand -base64 20 | podman secret create gitea_db_user_passwd -
|
||||
|
|
|
@ -9,14 +9,14 @@ services:
|
|||
volumes:
|
||||
- /trayimurti/containers/volumes/nextcloud/db:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=/run/secrets/sql_root_passwd
|
||||
- MYSQL_PASSWORD=/run/secrets/sql_user_passwd
|
||||
- MYSQL_ROOT_PASSWORD=/run/secrets/nextcloud_db_root_passwd
|
||||
- MYSQL_PASSWORD=/run/secrets/nextcloud_db_user_passwd
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
- TZ=Asia/Kolkata
|
||||
secrets:
|
||||
- sql_root_passwd
|
||||
- sql_user_passwd
|
||||
- nextcloud_db_root_passwd
|
||||
- nextcloud_db_user_passwd
|
||||
security_opt:
|
||||
- label=disable
|
||||
|
||||
|
@ -31,25 +31,25 @@ services:
|
|||
volumes:
|
||||
- /trayimurti/containers/volumes/nextcloud/root:/var/www/html
|
||||
environment:
|
||||
- MYSQL_PASSWORD=/run/secrets/sql_user_passwd
|
||||
- MYSQL_PASSWORD=/run/secrets/nextcloud_db_user_passwd
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
- MYSQL_HOST=db
|
||||
- TZ=Asia/Kolkata
|
||||
secrets:
|
||||
- sql_user_passwd
|
||||
- nextcloud_db_user_passwd
|
||||
security_opt:
|
||||
- label=disable
|
||||
|
||||
secrets:
|
||||
sql_root_passwd:
|
||||
nextcloud_db_root_passwd:
|
||||
external: true
|
||||
sql_user_passwd:
|
||||
nextcloud_db_user_passwd:
|
||||
external: true
|
||||
|
||||
# create dirs
|
||||
# mkdir -vp /trayimurti/containers/volumes/nextcloud/{db,root}
|
||||
|
||||
# create secrets
|
||||
# openssl rand -base64 20 | podman secret create sql_root_passwd -
|
||||
# openssl rand -base64 20 | podman secret create sql_user_passwd -
|
||||
# openssl rand -base64 20 | podman secret create nextcloud_db_root_passwd -
|
||||
# openssl rand -base64 20 | podman secret create nextcloud_db_user_passwd -
|
||||
|
|
Loading…
Reference in New Issue