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.

51 lines
918 B

version: "3"
services:
postgresql:
image: postgres
container_name: postgresql
restart: always
ports:
- "${POSTGRES_PORT}:5432"
networks:
- postgresql-network
env_file:
- ../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
networks:
- postgresql-network
- caddy-network
env_file:
- ../stack.env
ports:
- "${PGADMIN_PORT}:80"
volumes:
- /root/containers/pgadmin:/var/lib/pgadmin
depends_on:
- postgresql
volumes:
postgresql:
name: postgresql
networks:
postgresql-network:
external: true
name: postgresql-network
caddy-network:
external: true
name: caddy-network