Add Dockerfile to embed backup file for Portainer compatibility
This commit is contained in:
parent
4ca8d3bae6
commit
1bfbf76a17
|
|
@ -0,0 +1,7 @@
|
|||
FROM postgres:16-alpine
|
||||
|
||||
# Copy backup file into the image
|
||||
COPY backup_global_20260130_184353.sql /tmp/restore.sql
|
||||
|
||||
# Set correct permissions
|
||||
RUN chmod 644 /tmp/restore.sql
|
||||
|
|
@ -2,7 +2,9 @@ version: '3.8'
|
|||
|
||||
services:
|
||||
postgres-local:
|
||||
image: postgres:16-alpine
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: pralog-local-db
|
||||
environment:
|
||||
POSTGRES_USER: itguys
|
||||
|
|
@ -11,7 +13,6 @@ services:
|
|||
ports:
|
||||
- "15432:5432"
|
||||
volumes:
|
||||
- ./backup_global_20260130_184353.sql:/tmp/restore.sql:ro
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- pralog-net
|
||||
|
|
|
|||
Loading…
Reference in New Issue