This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose_build.yml
121 lines (112 loc) · 3.16 KB
/
docker-compose_build.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3.5'
services:
nginx:
build: ./nginx
depends_on:
- odc-frontend
- odc-manager
ports:
- 80:80
networks:
- ids_connector
odc-adapter-ckan:
build: ./adapters/odc-adapter-ckan
image: odc-adapter-ckan
volumes:
- odc-adapter-ckan_repo:/ids/repo
depends_on:
- odc-config-manager
environment:
- REPOSITORY=/ids/repo/
- CONFIG_MANAGER_PORT=8080
- CONFIG_MANAGER_HOST=odc-config-manager
- ROUTE_ALIAS=odc-adapter-ckan
networks:
- ids_connector
odc-adapter-postgres:
build: ./adapters/odc-adapter-postgres
image: odc-adapter-postgres
volumes:
- odc-adapter-postgres_repo:/ids/repo
depends_on:
- odc-config-manager
environment:
- REPOSITORY=/ids/repo/
- CONFIG_MANAGER_PORT=8080
- CONFIG_MANAGER_HOST=odc-config-manager
- ROUTE_ALIAS=odc-adapter-postgres
networks:
- ids_connector
odc-config-manager:
build: ./backend/odc-config-manager
volumes:
- odc-config-manager_repo:/ids/repo
- /var/run/docker.sock:/var/run/docker.sock
environment:
- REPOSITORY=/ids/repo/
- INIT=true
- SERVICE_PORT=8080
- DOCKER_SERVICE_PORT=8080
- DOCKER_SERVICE_HOST=odc-service-docker
- API_KEY=yourapikey
networks:
- ids_connector
- ids_docker
odc-service-docker:
build: ./backend/odc-service-docker
volumes:
- odc-service-docker_repo:/ids/repo
- /var/run/docker.sock:/var/run/docker.sock
environment:
- REPOSITORY=/ids/repo/
- INIT=true
- SERVICE_PORT=8080
networks:
- ids_docker
db:
image: postgres
volumes:
- ./backend/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- odc-manager-database:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=123456
- DATABASE_USER=ids
- DATABASE_USER_PW=ids
networks:
- ids_connector
odc-manager:
build: ./backend/odc-manager
volumes:
- odc-manager_repo:/ids/repo
- ./certs:/ids/certs
depends_on:
- db
environment:
- FRONTEND_CONFIG={"username":"admin","password":"admin"}
- DB_CONFIG={"host":"db","port":5432,"database":"ids","user":"ids","password":"ids"}
- CONFIG_MANAGER_CONFIG={"apikey":"yourapikey", "host":"odc-config-manager","port":8080}
- AUTH_CONFIG={"mode":"skip","keystorename":"my-keystore.jks", "keystorepassword":"my-password", "keystorealias":"connector-alias","truststorename":"truststore-name","dapsurl":"https://daps.aisec.fraunhofer.de/v2/", "dapsissuer":"https://daps.aisec.fraunhofer.de"}
- REPOSITORY=/ids/repo/
- INIT=true
- SERVICE_PORT=8080
networks:
- ids_connector
odc-frontend:
build: ./frontend/odc-frontend
environment:
- VUE_APP_BACKEND_BASE_URL=http://localhost
- VUE_APP_TITLE=IDS Open Data Konnektor
networks:
- ids_connector
volumes:
odc-adapter-ckan_repo:
odc-adapter-postgres_repo:
odc-config-manager_repo:
odc-manager-database:
odc-manager_repo:
odc-service-docker_repo:
networks:
ids_connector:
name: ids_connector
ids_docker:
name: ids_docker