Created
February 8, 2022 19:49
-
-
Save eramax/240e48d54e6ad680eb802f2769221246 to your computer and use it in GitHub Desktop.
postgres docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
postgres: | |
container_name: postgres-container | |
image: postgres | |
restart: always | |
ports: | |
- '5432:5432' | |
volumes: | |
- ./db:/var/lib/postgresql/data | |
environment: | |
POSTGRES_PASSWORD: 123 | |
networks: | |
- postgres | |
pgadmin: | |
container_name: pgadmin4-container | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: 123 | |
PGADMIN_CONFIG_SERVER_MODE: 'False' | |
volumes: | |
- ./pgadmin:/root/.pgadmin | |
ports: | |
- 5050:80 | |
networks: | |
- postgres | |
networks: | |
postgres: | |
name: postgres-network | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment