Skip to content

Instantly share code, notes, and snippets.

@initcron
Created October 20, 2022 10:42
Show Gist options
  • Save initcron/43da60ba945a8de9702c97d1eaef06df to your computer and use it in GitHub Desktop.
Save initcron/43da60ba945a8de9702c97d1eaef06df to your computer and use it in GitHub Desktop.
Docker Compose v3
version: "3.8"
networks:
custom:
driver: bridge
services:
app:
image: xxxx/petclinic:v5
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