version: '3' services: db: image: postgres:14-alpine environment: POSTGRES_USER: test POSTGRES_PASSWORD: test volumes: - calendar_db:/var/lib/postgresql/data - ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql #- ./sql/populate_debug.sql:/docker-entrypoint-initdb.d/populate.sql ports: - 5432:5432 db-ui: image: dpage/pgadmin4 environment: PGADMIN_DEFAULT_EMAIL: test@test.fr PGADMIN_DEFAULT_PASSWORD: test ports: - 8081:80 volumes: calendar_db: {}