parent
8f4cb311b1
commit
9c6fc0460b
@ -1,4 +1,7 @@
|
||||
|
||||
# Docker Container Persistant files
|
||||
Postgres/pg-db_data/*
|
||||
Postgres/pg-admin_data/*
|
||||
Postgres/pg-admin_data/*
|
||||
|
||||
IntegrationsDocker/pg-db_data/*
|
||||
IntegrationsDocker/pg-admin_data/*
|
@ -0,0 +1,7 @@
|
||||
ActiveAllocator__Database__Host=database
|
||||
ActiveAllocator__Database__Port=5432
|
||||
Puppeteer__KeepAliveIntervalMinutes=10
|
||||
|
||||
POSTGRES_PASSWORD=nqA3UV3CliLLHpLL
|
||||
PGADMIN_DEFAULT_EMAIL=admin@admin.com
|
||||
PGADMIN_DEFAULT_PASSWORD=3254
|
@ -0,0 +1,22 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
activeallocator-integration-simmonsbank:
|
||||
image: activeallocator-integration-simmonsbank:latest
|
||||
container_name: activeallocator-integration-simmonsbank
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- 7555:80
|
||||
depends_on:
|
||||
- database
|
||||
database:
|
||||
container_name: activeallocator-integration-simmonsbank-db
|
||||
image: 'postgres:15'
|
||||
ports:
|
||||
- 15532:5432
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./pg-db_data/:/var/lib/postgresql/data/
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
@ -0,0 +1,3 @@
|
||||
-- Create the DB if it doesn't already exist
|
||||
SELECT 'CREATE DATABASE AAISB_DB'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'AAISB_DB')\gexec
|
Loading…
Reference in new issue