docker compose

This commit is contained in:
Janis
2022-12-24 19:41:46 +01:00
parent 0c2ad4b1b0
commit df3942bcbd
972 changed files with 1020 additions and 1 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
version: "3.9"
services:
postgres:
image: postgres
container_name: explainegy_postgres
volumes:
- ./docker_data/postgres:/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
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/servers.json:/pgadmin4/servers.json # preconfigured servers/connections
- ./docker/pgpass:/pgpass # passwords for the connections in this file
depends_on:
- "postgres"