-
Notifications
You must be signed in to change notification settings - Fork 0
/
Acornfile
42 lines (36 loc) · 993 Bytes
/
Acornfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Spring Boot Sample Acorn"
description: "Acorn running a sample Petclinic Springboot app"
readme: "./README.md"
icon: "./spring-boot-logo.svg"
args: {
// Name of the database to create. Defaults to "instance"
dbName: "petclinic"
// Provide user for mysql. If the value is not provided, it will default to
user: "petclinic"
}
services: db: {
image: "ghcr.io/acorn-io/mariadb:v10.11.5-2"
serviceArgs: {
dbName: args.dbName
username: args.user
memory: 512Mi
}
}
containers: {
petclinic: {
image: "ghcr.io/infracloudio/spring-boot-petclinic-app:v1"
env: {
"SERVER_PORT": "8080"
"MYSQL_URL": "jdbc:@{service.db.address}"
"MYSQL_USER": "@{service.db.secrets.user.username}"
"MYSQL_PASSWORD": "@{service.db.secrets.user.password}"
"MYSQL_DATABASE": "@{services.db.data.dbName}"
}
memory: 512Mi
ports: {
publish: "8080/http"
publish: "8080/http"
}
consumes: ["db"]
}
}