-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaptain-definition
More file actions
61 lines (61 loc) · 1.69 KB
/
captain-definition
File metadata and controls
61 lines (61 loc) · 1.69 KB
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
{
"schemaVersion": 2,
"dockerCompose": {
"version": "3.8",
"services": {
"$$cap_appname-db": {
"image": "postgres:15-alpine",
"environment": {
"POSTGRES_DB": "neodocs",
"POSTGRES_USER": "$$cap_postgres_user",
"POSTGRES_PASSWORD": "$$cap_postgres_password"
},
"volumes": [
"$$cap_appname-postgres-data:/var/lib/postgresql/data"
],
"caproverExtra": {
"notExposeAsWebApp": "true"
}
},
"$$cap_appname-backend": {
"build": {
"context": "./backend",
"dockerfile": "Dockerfile.prod"
},
"environment": {
"DATABASE_URL": "postgresql://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-db:5432/neodocs",
"JWT_SECRET": "$$cap_jwt_secret",
"NODE_ENV": "production",
"AWS_ACCESS_KEY_ID": "$$cap_aws_access_key",
"AWS_SECRET_ACCESS_KEY": "$$cap_aws_secret_key",
"AWS_REGION": "$$cap_aws_region",
"S3_BUCKET_NAME": "$$cap_s3_bucket"
},
"depends_on": [
"$$cap_appname-db"
],
"caproverExtra": {
"containerHttpPort": "3001"
}
},
"$$cap_appname-frontend": {
"build": {
"context": "./frontend",
"dockerfile": "Dockerfile.prod"
},
"environment": {
"VITE_API_URL": "https://$$cap_appname-backend.$$cap_root_domain"
},
"depends_on": [
"$$cap_appname-backend"
],
"caproverExtra": {
"containerHttpPort": "80"
}
}
},
"volumes": {
"$$cap_appname-postgres-data": {}
}
}
}