-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (45 loc) · 1.08 KB
/
docker-compose.yaml
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
# Set the PROJECT_ID and GCP_SERVICE_ACCOUNT_KEY_PATH environment variables
# before running the services
services:
jvm:
#platform: linux/arm64
build:
dockerfile: jvm.Dockerfile
args:
GCLOUD_PROJECT: ${GCLOUD_PROJECT}
develop:
watch:
- path: ./src
action: rebuild
- path: ./pom.xml
action: rebuild
ports:
- "8080:80"
volumes:
- ./credentials.json:/credentials.json
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/credentials.json
- GCLOUD_PROJECT=${GCLOUD_PROJECT}
mem_limit: 512m
cpus: 1
native:
#platform: linux/arm64
build:
dockerfile: native.Dockerfile
args:
GCLOUD_PROJECT: ${GCLOUD_PROJECT}
develop:
watch:
- path: ./src
action: rebuild
- path: ./pom.xml
action: rebuild
ports:
- "8081:80"
volumes:
- ./credentials.json:/credentials.json
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/credentials.json
- GCLOUD_PROJECT=${GCLOUD_PROJECT}
mem_limit: 512m
cpus: 1