This commit is contained in:
Janis
2023-01-29 20:01:56 +01:00
parent d3e5295832
commit bc29de3255
119 changed files with 26881 additions and 0 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: "3.9"
volumes:
explainegy_pg:
services:
postgres:
image: postgres:latest
container_name: explainegy_postgres
volumes:
- explainegy_pg:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- ALLOW_IP_RANGE=0.0.0.0/0
ports:
- "5432:5432"
restart: always
healthcheck:
test: "exit 0"
pgadmin:
image: dpage/pgadmin4:latest
container_name: explainegy_pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com #the username to login to pgadmin
PGADMIN_DEFAULT_PASSWORD: admin # the password to login to pgadmin
ports:
- "5050:80"
volumes:
- ./docker_data/servers.json:/pgadmin4/servers.json # preconfigured servers/connections
- ./docker_data/pgpass:/pgpass # passwords for the connections in this file
depends_on:
- "postgres"