Add Dockerfile to embed backup file for Portainer compatibility

This commit is contained in:
João Pedro Toledo Goncalves 2026-02-03 12:37:35 -03:00
parent 4ca8d3bae6
commit 1bfbf76a17
2 changed files with 10 additions and 2 deletions

7
Dockerfile Normal file
View File

@ -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

View File

@ -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