Created
August 25, 2023 06:55
-
-
Save gurcankavakci/21364d390a5c85323806a603fc2e807c to your computer and use it in GitHub Desktop.
PostgreSQL docker-compose.yml
This file contains 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.5" | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres:14.1-alpine | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=123456 | |
ports: | |
- '5432:5432' | |
volumes: | |
- db:/var/lib/postgresql/data | |
restart: unless-stopped | |
pgadmin: | |
image: dpage/pgadmin4:7.3 | |
container_name: pgadmin | |
environment: | |
PGADMIN_DEFAULT_EMAIL: gurcan@kavakci.com | |
PGADMIN_DEFAULT_PASSWORD: 123456 | |
PGADMIN_CONFIG_SERVER_MODE: 'False' | |
user: root | |
volumes: | |
- pgadmin:/var/lib/pgadmin | |
- ./backups:/backups | |
ports: | |
- "5050:80" | |
restart: unless-stopped | |
volumes: | |
db: | |
driver: local | |
pgadmin: | |
driver: local | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment