Skip to content

Instantly share code, notes, and snippets.

@hahouari
Last active April 15, 2022 09:07
Show Gist options
  • Save hahouari/79aa93a228c4374b4a400bb897428f1f to your computer and use it in GitHub Desktop.
Save hahouari/79aa93a228c4374b4a400bb897428f1f to your computer and use it in GitHub Desktop.
database:
container_name: my_database
restart: always
image: postgres:13-alpine
user: '0:0'
ports:
- '5435:5432'
env_file:
- $PWD/.env
volumes:
- $PWD/pgsql:/var/lib/postgresql/data
- $PWD/var:/var/www/var
pgadmin:
container_name: my_pgadmin
image: dpage/pgadmin4
restart: always
user: '0:0'
environment:
PGADMIN_LISTEN_PORT: 5050
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_DEFAULT_EMAIL: admin@admin.com
ports:
- '8088:5050'
volumes:
- $PWD/pgadmin:/var/lib/pgadmin
- $PWD/docker/pgadmin/config_local.py:/pgadmin4/config_local.py
depends_on:
- database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment