File tree 5 files changed +28
-2
lines changed
5 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 129
129
env.bak /
130
130
venv.bak /
131
131
132
+ # Docker Compose ENV
133
+ docker-compose.env
134
+
132
135
# Rodhaj configurations
133
136
config.json
134
137
config.yml
Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ name: "rodhaj-dev"
3
3
services :
4
4
postgres :
5
5
container_name : Rodhaj-Postgres
6
- image : postgres:15
6
+ image : rodhaj-pg:dev-latest
7
+ build :
8
+ context : ./docker/pg
9
+ dockerfile : Dockerfile
7
10
env_file :
8
- - bot/ .env
11
+ - docker-compose .env
9
12
volumes :
10
13
- postgres_volume:/var/lib/postgresql/data
11
14
ports :
Original file line number Diff line number Diff line change
1
+ FROM postgres:15
2
+ COPY /init.sh /docker-entrypoint-initdb.d/
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ psql -v ON_ERROR_STOP=1 --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " << -EOSQL
5
+ CREATE ROLE rodhaj WITH LOGIN PASSWORD "$RODHAJ_PASSWORD ";
6
+ CREATE DATABASE rodhaj OWNER rodhaj;
7
+ EOSQL
Original file line number Diff line number Diff line change
1
+ # Docker Compose ENV file
2
+ # This is used for setting up the PostgreSQL server
3
+ # found within the docker compose file
4
+
5
+ # Docker PostgreSQL root credientials
6
+ POSTGRES_USER = postgres
7
+ POSTGRES_PASSWORD = password
8
+
9
+ # Account for the rodhaj user on PostgreSQL
10
+ # This is used to create the internal user, rodhaj
11
+ RODHAJ_PASSWORD = password
You can’t perform that action at this time.
0 commit comments