-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (94 loc) · 2.53 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
# Used in development
services:
frontend:
image: "node:hydrogen-alpine"
tty: true
volumes:
- ".:/app"
working_dir: "/app/apps/frontend"
command: "npm run dev -- --host"
ports:
- "3000:3000"
environment:
- VITE_CAPTCHA_SITE_KEY=6Le6ZrYqAAAAAPG-tsPqZm_1numHrNnJ66Ob9KYU
- VITE_API_ENDPOINT=http://localhost:8080
- VITE_OAUTH_CLIENT_ID=953907026294-3ev1hl5pqitqkks4alkkqhs5616oidq7.apps.googleusercontent.com
- VITE_AAI_EDU_LOGOUT_URL=https://fed-lab.aaiedu.hr/sso/module.php/oidc/logout.php
- VITE_AAI_EDU_LOGOUT_REDIRECT_URL=http://localhost:3000/
backend:
image: "node:hydrogen-alpine"
tty: true
volumes:
- ".:/app"
working_dir: "/app/apps/backend"
command: "npm run dev"
depends_on:
scylla:
condition: service_healthy
redis:
condition: service_started
function:
condition: service_started
ports:
- "8080:8080"
env_file:
- "global.env"
environment:
- MODE=development
- PORT=8080
- DB_HOST=scylla
- DB_PORT=9042
- DB_KEYSPACE=kontestis
- DB_DATACENTER=datacenter1
- REDIS_URL=redis://redis:6379
- INFLUXDB_URL=http://influxdb:8086
- OAUTH_CLIENT_ID=953907026294-3ev1hl5pqitqkks4alkkqhs5616oidq7.apps.googleusercontent.com
- EVALUATOR_ENDPOINT=http://function:8080
function:
build:
context: ./apps/function
dockerfile: base.dockerfile
tty: true
volumes:
- ".:/app"
working_dir: "/app/apps/function"
command: "npm run dev"
ulimits:
stack:
soft: 20971520
hard: 20971520
ports:
- 8081:8080
scylla:
image: "scylladb/scylla:5.1.7"
command: "--smp 1 --skip-wait-for-gossip-to-settle 0 --developer-mode 1"
ports:
- "9042:9042"
volumes:
- "./tools/scylla:/var/lib/scylla"
healthcheck:
test: cqlsh -e "exit"
interval: 2s
retries: 10
start_period: 10s
timeout: 10s
redis:
image: "redis:latest"
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
influxdb:
image: influxdb:2.6-alpine
volumes:
- "./tools/influx:/var/lib/influxdb2"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=root
- DOCKER_INFLUXDB_INIT_PASSWORD=root1234
- DOCKER_INFLUXDB_INIT_ORG=kontestis-org
- DOCKER_INFLUXDB_INIT_BUCKET=kontestis
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=devtoken
- TZ=Europe/Zagreb
ports:
- "8086:8086"