-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_waypoint.hcl
61 lines (52 loc) · 1.11 KB
/
example_waypoint.hcl
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
project = "nginx-http-golang-dev"
# Labels can be specified for organizational purposes.
# labels = { "foo" = "bar" }
app "db" {
config {
env = {
POSTGRES_USER = "postgres"
POSTGRES_PASSWORD = "postgres"
PG_DSN = "host=db port=5432 user=postgres dbname=postgres sslmode=disable password=postgres"
}
}
build {
use "docker-pull" {
image = "postgres"
tag = "13"
}
}
deploy {
use "dockerdesk" {
published_ports = "5432:5432"
use_app_as_container_name = true
}
}
}
app "backend" {
path = "./backend"
build {
use "docker" {
}
}
deploy {
use "dockerdesk" {
binds = ["${path.app}:/workspace:cached"]
service_port = 80
use_app_as_container_name = true
}
}
}
app "frontend" {
path = "./frontend"
build {
use "docker" {
}
}
deploy {
use "dockerdesk" {
published_ports = "80:80"
service_port = 80
use_app_as_container_name = true
}
}
}