Browse Source

Changing DB user

master
Miguel Gagliardo 5 months ago
parent
commit
9c6de75189
3 changed files with 6 additions and 3 deletions
  1. 2
    2
      docker-compose.yaml
  2. 1
    1
      homeserver.yaml.db
  3. 3
    0
      install.sh

+ 2
- 2
docker-compose.yaml View File

21
     image: docker.io/postgres:16-alpine
21
     image: docker.io/postgres:16-alpine
22
     environment:
22
     environment:
23
       - POSTGRES_DB=synapse
23
       - POSTGRES_DB=synapse
24
-      - POSTGRES_USER=synapse
24
+      - POSTGRES_USER=matrix_synapse
25
       - POSTGRES_PASSWORD=PG_PASS
25
       - POSTGRES_PASSWORD=PG_PASS
26
       - POSTGRES_INITDB_ARGS=--encoding=UTF8 --lc-collate=C --lc-ctype=C
26
       - POSTGRES_INITDB_ARGS=--encoding=UTF8 --lc-collate=C --lc-ctype=C
27
     volumes:
27
     volumes:
66
       - SYNCV3_BINDADDR=:8008
66
       - SYNCV3_BINDADDR=:8008
67
       - SYNCV3_SERVER=https://DOMAIN
67
       - SYNCV3_SERVER=https://DOMAIN
68
       - SYNCV3_SECRET=SLIDING_SYNC_KEY
68
       - SYNCV3_SECRET=SLIDING_SYNC_KEY
69
-      - SYNCV3_DB=user=synapse dbname=synapse sslmode=disable host=db password=PG_PASS
69
+      - SYNCV3_DB=user=matrix_synapse dbname=synapse sslmode=disable host=db password=PG_PASS
70
     networks:
70
     networks:
71
       matrix_server:
71
       matrix_server:
72
         ipv4_address: 10.10.10.7
72
         ipv4_address: 10.10.10.7

+ 1
- 1
homeserver.yaml.db View File

1
 database:
1
 database:
2
   name: psycopg2
2
   name: psycopg2
3
   args:
3
   args:
4
-    user: synapse
4
+    user: matrix_synapse
5
     password: PG_PASS
5
     password: PG_PASS
6
     dbname: synapse
6
     dbname: synapse
7
     host: db
7
     host: db

+ 3
- 0
install.sh View File

18
 # Disable "Pending Kernel upgrade" banner
18
 # Disable "Pending Kernel upgrade" banner
19
 sed -i "s|#\$nrconf{kernelhints} = -1;|\$nrconf{kernelhints} = -1;|g" /etc/needrestart/needrestart.conf
19
 sed -i "s|#\$nrconf{kernelhints} = -1;|\$nrconf{kernelhints} = -1;|g" /etc/needrestart/needrestart.conf
20
 
20
 
21
+# Disable "Daemon Using Outdated Libraries" banner
22
+sed -i "s|#\$nrconf{restart} = 'i';|\$nrconf{restart} = 'a';|g" /etc/needrestart/needrestart.conf
23
+
21
 # Baseline utils
24
 # Baseline utils
22
 echo -e "Installing baseline utils\n"
25
 echo -e "Installing baseline utils\n"
23
 apt update
26
 apt update

Loading…
Cancel
Save