-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
157 lines (102 loc) · 3.01 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
version: "3.9"
networks:
khyber:
external: false
driver: bridge
volumes:
keycloak:
external: false
timescaledb:
external: false
services:
keycloak:
logging:
driver: local
options:
max-size: "20m"
max-file: "5"
compress: "true"
restart: on-failure
networks:
- khyber
ports:
- "8080:8080"
container_name: keycloak
volumes:
- "keycloak:/tmp"
image: jboss/keycloak:${KEYCLOAK_VERSION}
environment:
- KEYCLOAK_USER=${KEYCLOAK_USER_NAME}
- KEYCLOAK_PASSWORD=${KEYCLOAK_PASSWORD}
- DB_VENDOR=postgres
- DB_ADDR=timescaledb
- DB_PORT=${POSTGRESQL_PORTNUMBER:-5432}
- DB_DATABASE=${DATABASE_SERVER_DATABASENAME}
- DB_SCHEMA=public
- DB_USER=${DATABASE_SERVER_USERNAME}
- DB_PASSWORD=${DATABASE_SERVER_PASSWORD}
keycloak_client:
logging:
driver: local
options:
max-size: "20m"
max-file: "5"
compress: "true"
restart: on-failure
networks:
- khyber
ports:
- "8000:80"
container_name: keycloak_client
build:
context: ./js-console
image: irasus/keycloak_client:latest
timescaledb:
logging:
driver: local
options:
max-size: "20m"
max-file: "5"
compress: "true"
restart: unless-stopped
networks:
- khyber
# ports:
# - "${POSTGRESQL_PORTNUMBER:-5432}:5432"
container_name: timescaledb
volumes:
- "timescaledb:${PGDATA}"
image: timescale/timescaledb:${TIMESCALEDB_VERSION}
environment:
- POSTGRES_DB=${DATABASE_SERVER_DATABASENAME}
- POSTGRES_USER=${DATABASE_SERVER_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_SERVER_PASSWORD}
- TZ=${TZ}
- PGDATA=${PGDATA}
- TS_TUNE_MAX_CONNS=200
- TIMESCALEDB_TELEMETRY=off
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_SERVER_USERNAME} -d ${DATABASE_SERVER_DATABASENAME}"]
interval: 5s
timeout: 5s
retries: 5
nginx:
logging:
driver: local
options:
max-size: "20m"
max-file: "5"
compress: "true"
restart: on-failure
networks:
- khyber
ports:
- "${NGINX_HTTP_PORTNUMBER:-80}:80"
container_name: nginx
volumes:
- "./nginx/nginx.conf:/etc/nginx/nginx.conf"
- "./nginx/services:/etc/nginx/conf.d/"
image: nginx:${NGINX_VERSION}-alpine
depends_on:
- keycloak
- keycloak_client