alantech / iasql

Cloud Infrastructure as data in PostgreSQL

Home Page:https://iasql.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Data Persistence in PostgreSQL with Docker Compose

dopoljak opened this issue · comments

Hi,

I'm having an issue with the iasql container regarding data persistence when using Docker Compose. I am trying to persist PostgreSQL data to my local storage.

The iasql container successfully starts and creates data in the local persistence volume, but upon restart, the connection to AWS and data are not restored.

Below is the Docker Compose script that I have been using:

version: '3.8'
services:
iasql:
image: iasql/iasql
ports:
- "9876:9876"
- "5432:5432"
volumes:
- <path_to_your_local_folder>:/var/lib/postgresql/14/main
environment:
- IASQL_ENV=ci
container_name: iasql

Is there something missing or incorrect in my configuration that is causing this problem? Any guidance would be greatly appreciated.