Created
November 2, 2021 13:43
-
-
Save culttm/b5da9b4113ebc60c8265fb5417c2e860 to your computer and use it in GitHub Desktop.
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.6' | |
services: | |
postgres: | |
image: postgres:12 | |
restart: always | |
ports: | |
- "5432:5432" | |
volumes: | |
- ./db_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: admin | |
POSTGRES_PASSWORD: admin | |
POSTGRES_DB: crd | |
networks: | |
- postgres | |
pgadmin: | |
links: | |
- postgres:postgres | |
container_name: pgadmin | |
image: dpage/pgadmin4 | |
restart: always | |
ports: | |
- "8080:80" | |
volumes: | |
- ./db_data/pgadmin:/root/.pgadmin | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: admin | |
depends_on: | |
- "postgres" | |
networks: | |
- postgres | |
networks: | |
postgres: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment