-
Notifications
You must be signed in to change notification settings - Fork 0
/
Acornfile
46 lines (44 loc) · 1.03 KB
/
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
41
42
43
44
45
46
name: "Laravel Sample Acorn"
description: "Acorn running a sample Laravel app"
readme: "./README.md"
icon: "./laravel.svg"
args: {
laraveldbname: "laraveldb"
}
services: db: {
image: "ghcr.io/acorn-io/mariadb:v10.11.5-1"
serviceArgs: {
dbName: args.laraveldbname
}
}
containers: {
app: {
build: {
context: "./src"
dockerfile: "./src/Dockerfile"
}
dirs: "/var/www": "./src"
ports: "9000"
env: {
DB_HOST: "@{service.db.address}"
DB_PORT: "@{service.db.port.3306}"
DB_DATABASE: "@{service.db.data.dbName}"
DB_USERNAME: "@{service.db.secrets.admin.username}"
DB_PASSWORD: "@{service.db.secrets.admin.password}"
SERVICE_TAGS: "dev"
SERVICE_NAME: "mysql"
}
if args.dev {
env: APP_DEBUG: "true"
dirs: "/var/www": "./src"
}
}
nginx: {
image: "nginx:alpine"
ports: publish: "8000:80/http"
dirs: {
"/var/www": "./src"
"/etc/nginx/conf.d": "./conf/nginx"
}
}
}