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:
|
services:
|
||||||
postgres-local:
|
postgres-local:
|
||||||
image: postgres:16-alpine
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
container_name: pralog-local-db
|
container_name: pralog-local-db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: itguys
|
POSTGRES_USER: itguys
|
||||||
|
|
@ -11,7 +13,6 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "15432:5432"
|
- "15432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- ./backup_global_20260130_184353.sql:/tmp/restore.sql:ro
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- pralog-net
|
- pralog-net
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue