-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (51 loc) · 1.31 KB
/
docker-compose.yaml
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
version: '3.8'
services:
singlestore:
image: singlestore/cluster-in-a-box
restart: always
environment:
LICENSE_KEY: "BDFlMzU1YTRmYzNhYjQ5N2I4NTE0NmIyNGQwMmFiNGJiAAAAAAAAAAAEAAAAAAAAACgwNQIZAK37oyFeyAoDt0QMManPw85HzR93z/P3MQIYb9tRppkx0Maj7IXSxXDfaIya7JQ572voAA=="
ROOT_PASSWORD: "password"
ports:
- '3306:3306'
- '8080:8080'
redis:
image: redis:7
restart: always
ports:
- '6380:6379'
minio:
image: quay.io/minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
command: server --console-address ":9001" /data
app:
build: .
depends_on:
- singlestore
- redis
- minio
command: ['uvicorn', '--host', '0.0.0.0', '--port', '8001', '--log-level', 'warning', '--workers', '4', 'services.api.main:app']
environment:
DB_HOST: "singlestore"
REDIS_HOST: "redis"
MINIO_HOST: "minio"
REDIS_PORT: "6379"
ports:
- "8001:8001"
migrations:
build: .
environment:
DB_HOST: "singlestore"
REDIS_HOST: "redis"
MINIO_HOST: "minio"
REDIS_PORT: "6379"
depends_on:
- singlestore
- redis
- minio
command: bash -c "python db/migrations.py && python startup_scripts/fill_db.py"