Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ POSTGRES_USER=postgres
POSTGRES_PASSWORD=1234
POSTGRES_DATABASE=nsc_events
POSTGRES_PORT=5432

# pgAdmin Configuration
PGADMIN_DEFAULT_EMAIL=admin@example.com
PGADMIN_DEFAULT_PASSWORD=1234
PGADMIN_CONFIG_SERVER_MODE=False
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a monorepo containing both the frontend (Next.js) and backend (Nest.js)
- Node.js 20.x or higher
- npm
- PostgreSQL 14 or higher
- pgAdmin

### Installation

Expand Down
40 changes: 1 addition & 39 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,43 +137,5 @@ services:
retries: 5
start_period: 10s

###################################################
# Service: pgadmin
###################################################
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin-dev
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@example.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-1234}
PGADMIN_CONFIG_SERVER_MODE: ${PGADMIN_CONFIG_SERVER_MODE:-False}
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: ${PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED:-False}
ports:
- "5050:80"
volumes:
- nsc-events-pgadmin-data:/var/lib/pgadmin
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"python3",
"-c",
"import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1/misc/ping', timeout=3); sys.exit(0)"
]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
labels:
- traefik.enable=true
- traefik.http.routers.pgadmin.rule=Host(`db.localhost`)
- traefik.http.routers.pgadmin.entrypoints=web
- traefik.http.services.pgadmin.loadbalancer.server.port=80

volumes:
nsc-events-postgres-data:
nsc-events-pgadmin-data:
nsc-events-postgres-data:
33 changes: 3 additions & 30 deletions healthcheck-dependency.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading