Geo Data See PostGIS Minimal Docker-Compose db: image: postgres:15 restart: always # set shared memory limit when using docker-compose shm_size: 128mb # or set shared memory limit when deploy via swarm stack #volumes: # - type: tmpfs # target: /dev/shm # tmpfs: # size: 134217728 # 128*2^20 bytes = 128Mb ports: - 5432:5432 volumes: - ./data/postgres:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: somesecretpw POSTGRES_DB: example PGDATA: /var/lib/postgresql/data/pgdata adminer: image: adminer restart: always ports: - 8080:8080 The default user that gets created is postgres and we can override the password with POSTGRES_PASSWORD