Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active September 7, 2022 10:41
Show Gist options
  • Save initcron/a05d798a4223df269e30fe6fa77b5018 to your computer and use it in GitHub Desktop.
Save initcron/a05d798a4223df269e30fe6fa77b5018 to your computer and use it in GitHub Desktop.
Docker Compose for Sprint Petclinic with v3.8
version: "3.8"
networks:
custom:
services:
app:
image: xxxxxx/petclinic:dev
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
- SPRING_PROFILES_ACTIVE=mysql
networks:
- custom
depends_on:
- db
db:
image: mysql:5.7
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