Skip to content

Instantly share code, notes, and snippets.

@initcron
Created June 10, 2025 06:19
Show Gist options
  • Save initcron/9fecf092b314694374d3a339a64e76f5 to your computer and use it in GitHub Desktop.
Save initcron/9fecf092b314694374d3a339a64e76f5 to your computer and use it in GitHub Desktop.
networks:
custom:
driver: bridge
services:
app:
image: initcron/petclinic:dev
build:
context: .
dockerfile: Dockerfile.multistage.v1
ports:
- 8080:8080
environment:
- SPRING_PROFILES_ACTIVE=mysql
depends_on:
- db
networks:
- custom
db:
image: mysql:8.0
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