-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.58 KB
/
docker-compose.yml
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
62
63
version: "3.8"
services:
db:
container_name: "${DB_CONTAINER_ID}"
image: postgres
ports:
- "5432:5432"
volumes:
- pg_data_ac_cluster:/var/lib/postgresql/data
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "root!238Ji*"
POSTGRES_DB: "astrocluster"
clusterservice:
container_name: "${CLUSTER_SERVICE_CONTAINER_ID}"
build:
context: ./cluster
dockerfile: Dockerfile
args:
GENERATE_GRPC: "${GENERATE_GRPC}"
command: ["${DOWNLOAD_MODEL}", "${ASTROCLUSTER_MODEL_PATH}"]
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
ports:
- "50051:50051"
volumes:
- shared_cloned_projects:/ac-clustering-service/projects
- astrocluster_model_dir:/ac-clustering-service/finetune/fine_tuned_unixcoder
server:
container_name: "${SERVER_CONTAINER_ID}"
build:
context: ./server
dockerfile: Dockerfile
args:
MAVEN_PROFILES: "${MAVEN_PROFILES}"
BE_GRPC_DOCKER_PATH: "${BE_GRPC_DOCKER_PATH}"
ports:
- "8080:8080"
volumes:
- shared_cloned_projects:/projects
environment:
spring.datasource.url: "jdbc:postgresql://db:5432/astrocluster"
BE_GRPC_DOCKER_PATH: "${BE_GRPC_DOCKER_PATH}"
client:
container_name: "${CLIENT_CONTAINER_ID}"
build:
context: ./client
dockerfile: Dockerfile
ports:
- "80:80"
volumes:
pg_data_ac_cluster:
name: "pg_data_ac_cluster"
shared_cloned_projects:
name: "shared_cloned_projects"
astrocluster_model_dir:
name: "astrocluster_model_dir"