Created
May 9, 2022 14:30
-
-
Save jparanda/4d95e48c02cb569f12edc709a16c8c43 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.8" | |
services: | |
postgres: | |
image: postgres:latest | |
container_name: postgres | |
environment: | |
- POSTGRES_USER=admin | |
- POSTGRES_PASSWORD=12345 | |
- POSTGRES_DB=book-db | |
volumes: | |
- pgdata:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
pgadmin: | |
image: dpage/pgadmin4:latest | |
container_name: pgadmin | |
environment: | |
- PGADMIN_DEFAULT_EMAIL=juan.aranda.galvis@gmail.com | |
- PGADMIN_DEFAULT_PASSWORD=12345 | |
- PGADMIN_LISTEN_PORT=92 | |
ports: | |
- "9292:92" | |
app: | |
image: book-app:latest | |
container_name: book-app | |
ports: | |
- "8083:8083" | |
environment: | |
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresdb:5432/book-db | |
- SPRING_DATASOURCE_USERNAME=admin | |
- SPRING_DATASOURCE_PASSWORD=12345 | |
depends_on: | |
- postgres | |
volumes: | |
pgdata: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment