version: '3.2' services: db: image: postgres:12 restart: always ports: - 127.0.0.1:5432:5432 environment: POSTGRES_USER: admin POSTGRES_PASSWORD: admin POSTGRES_DB: garchives LANG: en_US.UTF-8 LANGUAGE: en_US:en LC_ALL: en_US.UTF-8 shm_size: 1024mb command: postgres -c 'shared_buffers=512MB' -c 'max_connections=1000' volumes: - pgdata:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4 logging: driver: none environment: PGADMIN_DEFAULT_EMAIL: admin@admin.org PGADMIN_DEFAULT_PASSWORD: admin volumes: - pgadmin:/root/.pgadmin ports: - "5050:80" restart: unless-stopped volumes: pgdata: pgadmin: