version: "3.4" services: db: image: postgres restart: always volumes: - "./db:/docker-entrypoint-initdb.d" networks: - default ports: - "5432:5432" environment: - "POSTGRES_DB=test" - "POSTGRES_USER=test_user" - "POSTGRES_PASSWORD=test_pass" ui: image: adminer restart: always networks: - default ports: - "8080:8080" depends_on: - db