Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Doorcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guardians of the Kretschmar Elock System
Doorcode
Commits
42aae97a
Commit
42aae97a
authored
May 25, 2020
by
Jacob Priddy
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I like me some pgadmin
parent
1f376e6d
Pipeline
#10000
passed with stages
in 3 minutes
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
+21
-11
docker-compose.yml.example
docker-compose.yml.example
+7
-5
docker-compose.yml.prod
docker-compose.yml.prod
+6
-6
nginx/conf.d/app.conf
nginx/conf.d/app.conf
+8
-0
No files found.
docker-compose.yml.example
View file @
42aae97a
...
...
@@ -14,6 +14,7 @@ secrets:
volumes:
db-data:
pgadmin-data:
services:
webserver:
...
...
@@ -43,7 +44,7 @@ services:
networks:
- doorcode
postgres:
image: postgres:1
1
-alpine
image: postgres:1
3
-alpine
container_name: postgres
restart: unless-stopped
tty: true
...
...
@@ -58,7 +59,7 @@ services:
networks:
- doorcode
dbadmin:
image: d
ockage/phppgadmin
:latest
image: d
page/pgadmin4
:latest
container_name: dbadmin
restart: unless-stopped
tty: true
...
...
@@ -66,10 +67,11 @@ services:
- "8081:80"
depends_on:
- postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
environment:
PHP_PG_ADMIN_SERVER_HOST: postgres
PHP_PG_ADMIN_SERVER_DEFAULT_DB: doorcode
PHP_PG_ADMIN_SERVER_PORT: 5432
PGADMIN_DEFAULT_EMAIL: admin@elock
PGADMIN_DEFAULT_PASSWORD: secret
networks:
- doorcode
api:
...
...
docker-compose.yml.prod
View file @
42aae97a
...
...
@@ -16,6 +16,7 @@ secrets:
volumes:
db-data:
pgadmin-data:
services:
webserver:
...
...
@@ -61,17 +62,16 @@ services:
networks:
- doorcode
dbadmin:
image: d
ockage/phppgadmin:latest
image: d
page/pgadmin4:4.21
container_name: dbadmin
restart: always
ports:
- "127.0.0.1:5431:80"
depends_on:
- postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
environment:
PHP_PG_ADMIN_SERVER_HOST: postgres
PHP_PG_ADMIN_SERVER_DEFAULT_DB: doorcode
PHP_PG_ADMIN_SERVER_PORT: 5432
PGADMIN_DEFAULT_EMAIL: admin@elock
PGADMIN_DEFAULT_PASSWORD: Please change the default password.
networks:
- doorcode
api:
...
...
nginx/conf.d/app.conf
View file @
42aae97a
...
...
@@ -62,6 +62,14 @@ server {
}
}
location
/
pgadmin4
{
proxy_set_header
X
-
Script
-
Name
/
pgadmin4
/;
proxy_set_header
X
-
Scheme
$
scheme
;
proxy_set_header
Host
$
http_host
;
proxy_pass
http
://
dbadmin
/;
proxy_redirect
off
;
}
location
/
api
{
proxy_pass
https
://
localhost
.
api
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment