mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Upgrading Postgres server. Just have mongo left to do and then :racecar:
This commit is contained in:
parent
30db103949
commit
ea485e464d
3 changed files with 12 additions and 20 deletions
|
@ -7,29 +7,20 @@
|
|||
notify: reload postgres
|
||||
register: updated_config
|
||||
|
||||
- name: Ensure postgres archive directory
|
||||
- name: Create Postgres docker volumes with correct permissions
|
||||
become: yes
|
||||
file:
|
||||
path: /srv/newsblur/docker/volumes/postgres/archive
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Ensure postgres backup directory
|
||||
become: yes
|
||||
file:
|
||||
path: /srv/newsblur/docker/volumes/postgres/backups
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Ensure postgres data directory
|
||||
become: yes
|
||||
file:
|
||||
path: /srv/newsblur/docker/volumes/postgres/data
|
||||
state: directory
|
||||
mode: 0755
|
||||
recurse: yes
|
||||
owner: "{{ ansible_effective_user_id|int }}"
|
||||
group: "{{ ansible_effective_group_id|int }}"
|
||||
with_items:
|
||||
- /srv/newsblur/docker/volumes/postgres/archive
|
||||
- /srv/newsblur/docker/volumes/postgres/backup
|
||||
- /srv/newsblur/docker/volumes/postgres/data
|
||||
|
||||
- name: Start postgres docker containers
|
||||
become: yes
|
||||
docker_container:
|
||||
name: postgres
|
||||
image: postgres:13
|
||||
|
@ -48,6 +39,7 @@
|
|||
- postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
user: 1000:1001
|
||||
volumes:
|
||||
- /srv/newsblur/docker/volumes/postgres/data:/var/lib/postgresql/data
|
||||
- /srv/newsblur/docker/volumes/postgres/archive:/var/lib/postgresql/archive
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"service": {
|
||||
"name": "db-postgres-secondary",
|
||||
"name": "db-postgres",
|
||||
"tags": [
|
||||
"db"
|
||||
],
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
<img src="/media/img/logo_512.png" class="logo">
|
||||
<h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
|
||||
<div class="description">
|
||||
<p>This is a database migration in prep for the NewsBlur Premium Archive subscription. Technically I don't need to bring down the site to do this, but I just wanted to be 100% sure. This should last less than 10-15 seconds, although it always takes me an extra 30 seconds to remember to take the maintenance page down.</p>
|
||||
<p>Moving to a larger Postgresql DB. This is the second of three major DB upgrades, the first being 12 hours ago. When these three upgrades are complete (within the next few days), NewsBlur will be much, much faster (editors note: it already is after last night's upgrade). All in prep for the upcoming Premium Archive feature. That and the redesign are available to beta test right now at <a href="https://beta.newsblur.com">beta.newsblur.com</a>. Better go quick before this message auto-refreshes back to a working NewsBlur.</p>
|
||||
<p>To pass the time, <a href="http://mltshp.com/popular">check out what's popular on MLTSHP</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue