-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
89 lines (89 loc) · 2.56 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
version: '3.6'
services:
db:
image: postgres:15
environment:
POSTGRES_USER: patternatlas
POSTGRES_PASSWORD: patternatlas
POSTGRES_DB: patternatlas
ports:
- "5060:5432"
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: 5432
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
restart: on-failure
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
config-server:
image: quay.io/coreos/etcd:v3.5.9
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
# used by the pattern atlas to render latex
latex-renderer:
image: planqk/latex-renderer:v1.1.1
ports:
- "5030:5030"
networks:
default:
driver: bridge