refactor(umami): migrate PostgreSQL to portable block storage
This commit is contained in:
2 files changed
+42
-21
No files matched your search
+9
-7
@@ -1,6 +1,7 @@
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
# image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest@sha256:b64f40400d77bcadd39cf5c62a1e368c99524ca442024f96e1133355a19a5dbc
|
||||
container_name: umami
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -28,7 +29,8 @@ services:
|
||||
- traefik.http.services.umami.loadbalancer.server.port=3000
|
||||
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
# image: postgres:16-alpine
|
||||
image: postgres:16-alpine@sha256:f2f98726820d0342055351c6e9d36e705f5bfffb3dd53ff556325114b08afb6d
|
||||
container_name: umami-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -36,7 +38,11 @@ services:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- umami-db-data:/var/lib/postgresql/data
|
||||
- type: bind
|
||||
source: /mnt/config/docker/umami/postgres
|
||||
target: /var/lib/postgresql/data
|
||||
bind:
|
||||
create_host_path: false
|
||||
networks:
|
||||
- umami-backend
|
||||
healthcheck:
|
||||
@@ -50,7 +56,3 @@ networks:
|
||||
external: true
|
||||
umami-backend:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
umami-db-data:
|
||||
external: true
|
||||
Reference in new issue
Block a user