-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
160 lines (160 loc) · 4.6 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: '3.6'
volumes:
exec_data:
services:
bloqCat-api:
image: aldekal/bloqcat-api:bloqcat
ports:
- "5000:5000"
networks:
- default
##### Winery ###
winery:
image: aldekal/winery:bloqcat
environment:
WINERY_HOSTNAME: ${PUBLIC_HOSTNAME}
WORKFLOWMODELER_HOSTNAME: ${PUBLIC_HOSTNAME}
TOPOLOGYMODELER_HOSTNAME: ${PUBLIC_HOSTNAME}
CONTAINER_HOSTNAME: ${PUBLIC_HOSTNAME}
WINERY_REPOSITORY_URL: https://github.com/aldekal/bloqCat-modeling
ports:
- '8080:8080'
networks:
- default
# database qc-atlas and pattern-atlas
# each container has it's own database, generated by the db image
db:
build:
context: ./db
image: bloqcat-db
environment:
# specifies user:pw for each container
POSTGRES_USERS: 'planqk:planqk|patternatlas:patternatlas'
# specifies db name for each container
POSTGRES_DATABASES: 'planqk:planqk|patternatlas:patternatlas'
ATLAS_DB: planqk
PATTERNATLAS_DB: patternatlas
#volumes:
# use this volume to save the postgres data
# - ./postgres-data:/var/lib/postgresql/data
ports:
- '5060:5060'
networks:
- default
qc-atlas-ui:
image: aldekal/qc-atlas-ui:bloqcat
depends_on:
- config-server
environment:
# because the requests are performed from the browser and not
# from the container itself we have to specify localhost here
# and **not** the container name
QC_ATLAS_HOST_NAME: localhost
QC_ATLAS_PORT: 6626
PATTERN_ATLAS_HOST_NAME: localhost
PATTERN_ATLAS_PORT: 1977
PATTERN_ATLAS_UI_HOST_NAME: localhost
PATTERN_ATLAS_UI_PORT: 1978
NISQ_ANALYZER_HOST_NAME: localhost
NISQ_ANALYZER_PORT: 5010
QPROV_HOST_NAME: localhost
QPROV_PORT: 5020
LATEX_RENDERER_HOST_NAME: localhost
LATEX_RENDERER_PORT: 5030
ports:
- '80:80'
volumes:
- ./config:/opt/init-config.d
networks:
- default
qc-atlas-api:
image: aldekal/qc-atlas-api:bloqcat
volumes:
# use this volume to save the concrete solution files
- /home/aldekal/Documents/github/qc-atlas-content/concrete_solutions:/opt/tomcat/temp/qc-atlas
environment:
POSTGRES_HOSTNAME: db
POSTGRES_PORT: 5060
POSTGRES_USER: planqk
POSTGRES_PASSWORD: planqk
POSTGRES_DB: planqk
ports:
- "6626:6626"
networks:
- default
pattern-atlas-api:
image: patternatlas/pattern-atlas-api:v1.8.4
environment:
JDBC_DATABASE_URL: db
JDBC_DATABASE_USERNAME: patternatlas
JDBC_DATABASE_PASSWORD: patternatlas
JDBC_DATABASE_PORT: 5060
DB_INIT_USER: patternatlas
DB_INIT_PASSWORD: patternatlas
LATEX_RENDERER_HOST_NAME: latex-renderer
LATEX_RENDERER_PORT: 5030
JDBC_DATABASE_NAME: patternatlas
PATTERN_ATLAS_FETCH_INITIAL_DATA: 'true'
HAL_EXPLORER: 'false'
#PATTERN_ATLAS_CONTENT_REPOSITORY_BRANCH: feature/known_uses
# activate correct application properties
SPRING_PROFILES_ACTIVE: docker
JWK_URI: http://auth:8080/realms/patternatlas/protocol/openid-connect/certs
SECURITY_LOGLEVEL: info
ports:
- "1977:1977"
networks:
- default
depends_on:
- db
- latex-renderer
pattern-atlas-ui:
image: patternatlas/pattern-atlas-ui:v1.5.6
depends_on:
- config-server
environment:
# because the requests are performed from the browser and not
# from the container itself we have to specify localhost here
# and **not** the container name
PATTERN_ATLAS_API_HOST_NAME: localhost
PATTERN_ATLAS_API_PORT: 1977
LATEX_RENDERER_HOST_NAME: localhost
LATEX_RENDERER_PORT: 5030
URL_SCHEME: http
AUTH_REALM_URL: http://localhost:7080/realms/patternatlas
ports:
- "1978:80"
networks:
- default
auth:
image: quay.io/keycloak/keycloak:18.0.0
command: start-dev --import-realm
volumes:
- ./keycloak_import:/opt/keycloak/data/import
environment:
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_ADMIN: admin
ports:
- "7080:8080"
networks:
- default
# used by qc-atlas-ui to render latex
latex-renderer:
image: planqk/latex-renderer:v1.2.0
ports:
- "5030:5030"
config-server:
image: quay.io/coreos/etcd:latest
environment:
ETCD_NAME: config-node1
ETCD_CORS: "*"
ETCD_ADVERTISE_CLIENT_URLS: "http://config-server:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ETCDCTL_API: 3
ports:
- "2379:2379"
networks:
- default
networks:
default:
driver: bridge