Created
August 18, 2022 14:09
-
-
Save initcron/6417709db34d5a4ff35c1ceae3662010 to your computer and use it in GitHub Desktop.
Spring Petclinic Compose Spec with Version 3.8
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" | |
networks: | |
custom: | |
driver: bridge | |
services: | |
app: | |
image: initcron/petclinic:dev | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- 8080:8080 | |
environment: | |
- SPRING_PROFILES_ACTIVE=mysql | |
networks: | |
- custom | |
depends_on: | |
- db | |
db: | |
image: mysql:5.7 | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD= | |
- MYSQL_ALLOW_EMPTY_PASSWORD=true | |
- MYSQL_USER=petclinic | |
- MYSQL_PASSWORD=petclinic | |
- MYSQL_DATABASE=petclinic | |
networks: | |
- custom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment