docker-compose.yml (735B)
1 # Use postgres/example user/password credentials 2 # - https://hub.docker.com/_/postgres 3 # - https://github.com/docker-library/docs/blob/master/postgres/README.md 4 version: '3.9' 5 6 services: 7 db: 8 container_name: postgresql 9 image: docker.io/postgres:16-alpine 10 command: docker-entrypoint.sh -c 'config_file=/etc/postgresql/postgresql.conf' 11 shm_size: 128mb 12 environment: 13 POSTGRES_PASSWORD: example 14 ports: 15 - 5432:5432 16 volumes: 17 - ./data/pgdata:/var/lib/postgresql/data 18 - ./postgresql.conf:/etc/postgresql/postgresql.conf 19 - ../schema:/docker-entrypoint-initdb.d 20 adminer: 21 container_name: adminer 22 image: docker.io/adminer:latest 23 restart: always 24 ports: 25 - 8080:8080 26