Last active
July 19, 2021 21:58
-
-
Save felipewind/d959e3b4d6698ae0d1006783722bd62a to your computer and use it in GitHub Desktop.
Heroku demo project with Quarkus, PostgreSQL and Angular
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.8" | |
services: | |
heroku-postgresql: | |
container_name: heroku-postgres | |
image: postgres:13.3 | |
environment: | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=postgres | |
- POSTGRES_USER=postgres | |
ports: | |
- 5432:5432 | |
networks: | |
- heroku-net | |
heroku-quarkus: | |
container_name: heroku-quarkus | |
image: heroku/quarkus-jvm:1.0 | |
build: | |
context: ./quarkus/ | |
dockerfile: ./src/main/docker/Dockerfile.jvm | |
ports: | |
- 8080:8080 | |
networks: | |
- heroku-net | |
depends_on: | |
- heroku-postgresql | |
environment: | |
- DB_ECHO_VALUES=true | |
- PORT=8080 | |
### Using the DB_HEROKU_SPLIT = true ### | |
- DB_HEROKU_SPLIT=true | |
- DATABASE_URL=postgres://postgres:postgres@heroku-postgresql:5432/postgres | |
### Using the DB_HEROKU_SPLIT = false ### | |
# - DB_HEROKU_SPLIT=false | |
# - DB_JDBC_URL=jdbc:postgresql://heroku-postgresql:5432/postgres | |
# - DB_JDBC_USER=postgres | |
# - DB_JDBC_PASSWORD=postgres | |
heroku-angular: | |
container_name: heroku-angular | |
image: heroku/angular:1.0 | |
build: | |
context: ./angular/ | |
dockerfile: ./Dockerfile | |
ports: | |
- 80:80 | |
networks: | |
- heroku-net | |
depends_on: | |
- heroku-quarkus | |
environment: | |
- API_URL=http://localhost:8080 | |
- PORT=80 | |
networks: | |
heroku-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment