Skip to content

Instantly share code, notes, and snippets.

@ivanauliaa
Last active April 22, 2022 22:52
Show Gist options
  • Save ivanauliaa/1a9cfef29080a84f7bbbd53522d57fdc to your computer and use it in GitHub Desktop.
Save ivanauliaa/1a9cfef29080a84f7bbbd53522d57fdc to your computer and use it in GitHub Desktop.
Postgres with Adminer (with custom port)
version: '3.4'
services:
postgres:
image: postgres:14-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
restart: always
volumes:
- ./postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
adminer:
image: adminer:4.8.1
restart: always
ports:
- 8282:8282
command:
- 'php'
- '-S'
- '[::]:8282'
- '-t'
- '/var/www/html'
entrypoint:
- 'entrypoint.sh'
- 'docker-php-entrypoint'
environment:
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DESIGN: dracula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment