Docker/wordpress/docker-compose.yml

44 lines
869 B
YAML

version: '3'
services:
postgres:
container_name: postgres
image: postgres
restart: always
networks:
- backend
environment:
- TZ=${TZ}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ${DIR}/postgres/data:/var/lib/postgresql/data
- ${DIR}/shared:/shared
pgadmin4:
container_name: pgadmin4
image: dpage/pgadmin4
restart: always
ports:
- "8003:80"
networks:
- backend
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
#- PUID=${PUID}
#- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DIR}/pgadmin4:/root/.pgadmin
#- ${DIR}/pgadmin4:/var/lib/pgadmin
networks:
frontend:
external: true
backend:
external: false