https://chat.mistral.ai As a java developer, can you write a docker-compose.yml file to setup a postgresql container and a pgadmin container ?
@@ -0,0 +1,31 @@
+version: '3.8'
+services:
+ db:
+ image: postgres
+ restart: always
+ environment:
+ POSTGRES_USER: myuser
+ POSTGRES_PASSWORD: mypassword
+ POSTGRES_DB: mydb
+ ports:
+ - "5432:5432"
+ volumes:
+ - db_data:/var/lib/postgresql/data
+
+ pgadmin:
+ image: dpage/pgadmin4
+ PGADMIN_DEFAULT_EMAIL: admin@admin.com
+ PGADMIN_DEFAULT_PASSWORD: root
+ - "8080:80"
+ - pgadmin_data:/var/lib/pgadmin
+ depends_on:
+ - db
+volumes:
+ db_data:
+ pgadmin_data: