version: '3' services: postgres: image: postgres:12 environment: POSTGRES_DB: dna_analyser POSTGRES_USER: ${POSTGRES_USER:-developer} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} PGDATA: /data/postgres volumes: - postgres:/data/postgres ports: - 5432:5432 volumes: postgres: pgadmin: