name: 2dbarecode services: postgres: build: context: . dockerfile: Dockerfile healthcheck: test: pg_isready -U postgres -h localhost interval: 5s timeout: 5s retries: 10 command: - postgres - -c - config_file=/etc/postgresql/postgresql.conf - -c - log_min_messages=fatal restart: unless-stopped ports: - "5432:5432" environment: POSTGRES_HOST: /var/run/postgresql POSTGRES_PORT: 5432 POSTGRES_PASSWORD: secret POSTGRES_DB: postgres PGDATABASE: postgres PGPASSWORD: secret PGPORT: 5432 JWT_SECRET: jwt_secret JWT_EXP: 3600 volumes: - ./data/db:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4 environment: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: R!%QGd^Z%#Df7Z5726 ports: - "5050:80" volumes: - pgadmin:/var/lib/pgadmin depends_on: - postgres volumes: pgadmin: