You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
791 B
43 lines
791 B
version: "3.8"
|
|
|
|
services:
|
|
postgresql:
|
|
image: postgresql:latest
|
|
container_name: postgresql
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
- "${POSTGRES_PORT}:5432"
|
|
networks:
|
|
- postgresql-network
|
|
environment:
|
|
- stack.env
|
|
volumes:
|
|
- /root/containers/postgresql/docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
|
|
- /root/containers/postgresql/data:/var/lib/postgresql/
|
|
|
|
pgadmin:
|
|
image: dpage/pgadmin4
|
|
container_name: pgadmin
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
- stack.env
|
|
|
|
ports:
|
|
- "${PGADMIN_PORT}:80"
|
|
volumes:
|
|
- /root/containers/pgadmin/data:/var/lib/pgadmin
|
|
depends_on:
|
|
- postgresql
|
|
|
|
volumes:
|
|
postgresql:
|
|
name: postgresql
|
|
|
|
networks:
|
|
postgresql-network:
|
|
name: postgresql-network
|