mirror of
https://github.com/Thumbscrew/pgadmin4-docker-compose.git
synced 2025-01-18 17:45:47 +00:00
add working docker-compose file
This commit is contained in:
parent
96dac19d74
commit
8f8d0bbf78
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
secrets/default_password.txt
|
29
docker-compose.yaml
Normal file
29
docker-compose.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
secrets:
|
||||||
|
default_password:
|
||||||
|
file: ./secrets/default_password.txt
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pgadmin:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
external: ${DOCKER_PROXY_EXT-true}
|
||||||
|
name: ${DOCKER_PROXY_NETWORK-proxy}
|
||||||
|
|
||||||
|
services:
|
||||||
|
pgadmin4:
|
||||||
|
image: dpage/pgadmin4:${IMAGE_TAG}
|
||||||
|
container_name: pgadmin
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- pgadmin:/var/lib/pgadmin
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
secrets:
|
||||||
|
- default_password
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
||||||
|
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/default_password
|
||||||
|
PGADMIN_DISABLE_POSTFIX: ${DISABLE_POSTFIX-false}
|
7
example.env
Normal file
7
example.env
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Docker Settings
|
||||||
|
DOCKER_PROXY_EXT=false
|
||||||
|
DOCKER_PROXY_NETWORK=proxy
|
||||||
|
|
||||||
|
# pgAdmin4 Settings
|
||||||
|
IMAGE_TAG=latest
|
||||||
|
DEFAULT_EMAIL="user@domain.com"
|
0
secrets/.gitkeep
Normal file
0
secrets/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user