This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-prod.yml
executable file
·115 lines (107 loc) · 3.42 KB
/
docker-compose-prod.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
version: '2.1'
services:
tesler-demo-node-1:
image: 'teslerplatform/demo:${APP_IMAGE_TAG}'
environment:
FRONTEND_AUTH_SERVER_URL: 'http://demo.tesler.io:9080/auth/'
BAKEND_AUTH_SERVER_URL: 'http://demo.tesler.io:9080/auth/'
DEV_PANEL_ENABLED: 'true'
META_DIRECTORY: 'classpath:meta'
DATABASE_DRIVER: 'org.postgresql.Driver'
DATABASE_URL: 'jdbc:postgresql://tesler_postgres:5432/postgres'
DATABASE_USER: 'postgres'
DATABASE_PASSWORD: 'postgres'
MINIO_ACCESS_KEY: '4eb6a7db8b58994ea61b'
MINIO_SECRET_KEY: 'prCv8t9LGRH18FB5pLr5jqDZ/dixZkb9cFajueGW'
MINIO_URL: 'http://tesler_minio:9000'
MINIO_DEFAULT_BUCKETS: 'edcs3gnsadevb'
JAVA_TOOL_OPTIONS: '-agentlib:jdwp=transport=dt_socket,server=y,address=8989,suspend=n'
expose:
- 8080
ports:
- 0.0.0.0:8081:8080
- 127.0.0.1:8981:8989
restart: always
tesler-demo-node-2:
image: 'teslerplatform/demo:${APP_IMAGE_TAG}'
environment:
FRONTEND_AUTH_SERVER_URL: 'http://demo.tesler.io:9080/auth/'
BAKEND_AUTH_SERVER_URL: 'http://demo.tesler.io:9080/auth/'
DEV_PANEL_ENABLED: 'true'
META_DIRECTORY: 'classpath:meta'
DATABASE_DRIVER: 'org.postgresql.Driver'
DATABASE_URL: 'jdbc:postgresql://tesler_postgres:5432/postgres'
DATABASE_USER: 'postgres'
DATABASE_PASSWORD: 'postgres'
MINIO_ACCESS_KEY: '4eb6a7db8b58994ea61b'
MINIO_SECRET_KEY: 'prCv8t9LGRH18FB5pLr5jqDZ/dixZkb9cFajueGW'
MINIO_URL: 'http://tesler_minio:9000'
MINIO_DEFAULT_BUCKETS: 'edcs3gnsadevb'
JAVA_TOOL_OPTIONS: '-agentlib:jdwp=transport=dt_socket,server=y,address=8989,suspend=n'
expose:
- 8080
ports:
- 0.0.0.0:8082:8080
- 127.0.0.1:8982:8989
restart: always
tesler_postgres:
image: postgres:12.0
environment:
- POSTGRES_PASSWORD=postgres
expose:
- 5432
ports:
- 127.0.0.1:5432:5432
keycloak:
image: jboss/keycloak:12.0.4
command:
[
'-b',
'0.0.0.0',
'-Dkeycloak.migration.action=import',
'-Dkeycloak.migration.provider=dir',
'-Dkeycloak.migration.dir=/opt/jboss/keycloak/realm-config',
'-Dkeycloak.migration.strategy=IGNORE_EXISTING',
'-Djboss.socket.binding.port-offset=1000',
'-Dkeycloak.profile.feature.upload_scripts=enabled'
]
volumes:
- ./docker/keycloak-config:/opt/jboss/keycloak/realm-config
- ./.tmp/keycloak-db:/opt/jboss/keycloak/standalone/data
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- DB_VENDOR=h2
expose:
- 9080
ports:
- 127.0.0.1:9080:9080
- 127.0.0.1:9443:9443
- 127.0.0.1:10990:10990
tesler_minio:
image: bitnami/minio:2022.2.12
expose:
- 9000
ports:
- "9000:9000"
environment:
MINIO_ROOT_USER: "4eb6a7db8b58994ea61b"
MINIO_ROOT_PASSWORD: "prCv8t9LGRH18FB5pLr5jqDZ/dixZkb9cFajueGW"
MINIO_DEFAULT_BUCKETS: "edcs3gnsadevb"
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/templates/:/etc/nginx/templates/
environment:
TESLER_APP_1: 'tesler-demo-node-1:8080'
TESLER_APP_2: 'tesler-demo-node-2:8080'
KEYCLOAK_1: 'keycloak:9080'
ports:
- 80:80
- 443:443
restart: always
depends_on:
- tesler-demo-node-1
- tesler-demo-node-2