-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
55 lines (50 loc) · 1.11 KB
/
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
version: "3.8"
services:
db:
image: neo4j:5.12.0
env_file:
- db/credentials.env
ports:
- 7474:7474
- 7687:7687
volumes:
- ./db/data:/data
chats:
image: mongo:4.4.26
ports:
- 27017:27017
frontend:
build: ./frontend
ports:
- 5173:80
backend:
build: ./backend
env_file:
- backend/.env
ports:
- 5000:5000
depends_on:
- db
- chats
command: sh -c "/wait && npm run prod"
environment:
NEO4J_URI: neo4j://db:7687
MONGODB_URI: mongodb://chats:27017
KEYCLOAK_URI: http://keycloak:3000
KEYCLOAK_ISSUER: http://localhost:3000
WAIT_HOSTS: db:7474, keycloak:3000
WAIT_BEFORE_HOSTS: 80
WAIT_AFTER_HOSTS: 3
keycloak:
image: keycloak/keycloak:24.0
command: start-dev --import-realm
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HTTP_PORT: 3000
KC_HOSTNAME_URL: http://localhost:3000
ports:
- 3000:3000
volumes:
- ./keycloak/import:/opt/keycloak/data/import
- ./keycloak/themes:/opt/keycloak/themes