services: db: container_name: PostgreSQL image: postgres mem_limit: 256m cpu_shares: 768 healthcheck: test: ["CMD", "pg_isready", "-q", "-d", "thedarty_DB", "-U", "root"] environment: POSTGRES_USER: root POSTGRES_PASSWORD: St&ph@ne10Nove.@1976 POSTGRES_DB: thedarty_DB volumes: - /var/lib/docker/volumes/adminer_postgresql:/var/lib/postgresql/data:rw ports: - "2665:5432" restart: unless-stopped adminer: image: adminer:latest container_name: Adminer hostname: adminer mem_limit: 128m cpu_shares: 256 security_opt: - no-new-privileges:true user: 1000:1000 ports: - "8220:8080" restart: unless-stopped