Created
May 7, 2024 22:46
-
-
Save r1tsuu/bdc5380e1de88ac6b7c1ce000ae7c380 to your computer and use it in GitHub Desktop.
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.9" | |
services: | |
postgres: | |
image: postgres:14-alpine | |
restart: unless-stopped | |
ports: | |
- 5432:5432 | |
volumes: | |
- data:/var/lib/postgresql/data | |
networks: | |
- postgres | |
environment: | |
- POSTGRES_HOST_AUTH_METHOD=trust | |
pgadmin: | |
image: dpage/pgadmin4 | |
container_name: pgadmin4_container | |
restart: always | |
ports: | |
- "8888:80" | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: strong-password | |
networks: | |
- postgres | |
volumes: | |
- pgadmin-data:/var/lib/pgadmin | |
networks: | |
postgres: | |
driver: bridge | |
volumes: | |
data: | |
pgadmin-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment