Restructured project
- backend moved to backend directory - added and initialized frontend with vue - moved infrastructure files to infra directory
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
db:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: infra/docker/postgres-pg-cron/Dockerfile
|
||||
container_name: postgres
|
||||
restart: always
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- shared_preload_libraries=pg_cron
|
||||
- -c
|
||||
- cron.database_name=familyHubDB
|
||||
environment:
|
||||
POSTGRES_USER: familyUser
|
||||
POSTGRES_PASSWORD: familyPass
|
||||
POSTGRES_DB: familyHubDB
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- ./volumes/postgres:/var/lib/postgresql/data
|
||||
- ./docker/postgres-pg-cron/init:/docker-entrypoint-initdb.d
|
||||
@@ -0,0 +1,5 @@
|
||||
FROM postgres:16
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends postgresql-16-cron \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
@@ -0,0 +1 @@
|
||||
CREATE EXTENSION IF NOT EXISTS pg_cron;
|
||||
Reference in New Issue
Block a user