2021-09-22 18:46:54 +02:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: postgres-vehicle
|
|
|
|
image: postgres
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2021-09-22 18:46:54 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: root
|
|
|
|
POSTGRES_PASSWORD: root
|
|
|
|
POSTGRES_DB: main
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
|
|
#- pg_data:/var/lib/postgresql/data/
|
|
|
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
|
|
|
|
pgadmin:
|
|
|
|
container_name: pgadmin
|
|
|
|
image: dpage/pgadmin4
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2021-09-22 18:46:54 +02:00
|
|
|
environment:
|
|
|
|
PGADMIN_DEFAULT_EMAIL: root@root.com
|
|
|
|
PGADMIN_DEFAULT_PASSWORD: root
|
|
|
|
ports:
|
|
|
|
- "5050:80"
|
|
|
|
|
|
|
|
#volumes:
|
|
|
|
# pg_data:
|