12345678910111213141516171819202122232425262728293031 |
- 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
- restart: always
- environment:
- PGADMIN_DEFAULT_EMAIL: admin@admin.com
- PGADMIN_DEFAULT_PASSWORD: root
- ports:
- - "8080:80"
- volumes:
- - pgadmin_data:/var/lib/pgadmin
- depends_on:
- - db
- volumes:
- db_data:
- pgadmin_data:
|