-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
132 lines (126 loc) · 4.03 KB
/
compose.yml
File metadata and controls
132 lines (126 loc) · 4.03 KB
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
services:
postgres:
image: postgres:18
container_name: postgres
environment:
POSTGRES_USER: ${POSTGRES_ADMIN}
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
POSTGRES_DATABASES: ${POSTGRES_DATABASES}
POSTGRES_DATABASE_USERNAMES: ${POSTGRES_DATABASE_USERNAMES}
POSTGRES_DATABASE_PASSWORDS: ${POSTGRES_DATABASE_PASSWORDS}
POSTGRES_INITDB_ARGS: ${POSTGRES_INITDB_ARGS}
command:
- "postgres"
- "-c"
- "listen_addresses=${POSTGRES_LISTEN_ADDRESSES}"
- "-c"
- "max_connections=${POSTGRES_MAX_CONNECTIONS}"
- "-c"
- "max_worker_processes=${POSTGRES_MAX_WORKER_PROCESSES}"
- "-c"
- "max_parallel_workers=${POSTGRES_MAX_PARALLEL_WORKERS}"
- "-c"
- "max_parallel_workers_per_gather=${POSTGRES_MAX_PARALLEL_WORKERS_PER_GATHER}"
- "-c"
- "shared_buffers=${POSTGRES_SHARED_BUFFERS}"
- "-c"
- "effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE}"
- "-c"
- "maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM}"
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql
- ./scripts/init-db:/docker-entrypoint-initdb.d
restart: unless-stopped
dbeaver:
image: dbeaver/cloudbeaver:latest
container_name: dbeaver
environment:
CB_ADMIN_NAME: ${DBEAVER_ADMIN_USERNAME}
CB_ADMIN_PASSWORD: ${DBEAVER_ADMIN_PASSWORD}
ports:
- "8978:8978"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./conf/dbeaver-initial-data-sources.conf:/opt/cloudbeaver/conf/initial-data-sources.conf
- ./data/dbeaver:/opt/cloudbeaver/workspace
restart: unless-stopped
depends_on:
- postgres
keycloak:
image: quay.io/keycloak/keycloak:26.1.3
container_name: keycloak
environment:
KC_DB: postgres
KC_DB_URL_HOST: host.docker.internal
KC_DB_URL_DATABASE: ${KEYCLOAK_DB_NAME}
KC_DB_USERNAME: ${KEYCLOAK_DB_USERNAME}
KC_DB_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
command: start-dev
ports:
- "8080:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./data/keycloak:/opt/keycloak/data
restart: unless-stopped
depends_on:
- postgres
mongodb:
image: mongo:8.0
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ADMIN}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ADMIN_PASSWORD}
ports:
- "27017:27017"
volumes:
- ./data/mongo:/data/db
restart: unless-stopped
mongodb-express:
image: mongo-express:1.0
container_name: mongodb-express
environment:
ME_CONFIG_MONGODB_URL: mongodb://${MONGO_ADMIN}:${MONGO_ADMIN_PASSWORD}@host.docker.internal:27017/?authSource=admin
ME_CONFIG_BASICAUTH_USERNAME: ${MONGOEXPRESS_ADMIN}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGOEXPRESS_ADMIN_PASSWORD}
ports:
- "8081:8081"
depends_on:
- mongodb
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
mqtt-broker:
image: eclipse-mosquitto:2.0
container_name: mqtt-broker
ports:
- "8883:8883"
- "9001:9001" # websockets, not used yet by hololinked
# - "1883:1883" # uncomment for non-TLS MQTT
volumes:
- ./conf/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./conf/passwords.txt:/mosquitto/config/passwords.txt
- ./data/mosquitto:/mosquitto/data
- ./data/mosquitto/log:/mosquitto/log
- ./data/mosquitto/persisted:/mosquitto/data/persisted/
- ./certs:/mosquitto/config/certs
restart: unless-stopped
# reverse-proxy:
# image: nginx:latest
# container_name: reverse-proxy
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
# - ./certs/server.crt:/etc/nginx/server.crt:ro
# - ./certs/server.key:/etc/nginx/server.key:ro
# depends_on:
# - keycloak
# - dbeaver
# restart: unless-stopped