-
Notifications
You must be signed in to change notification settings - Fork 76
/
docker-compose.yml
63 lines (59 loc) · 1.3 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
---
services:
redis:
profiles:
- redis
image: redis/redis-stack-server
ports:
- 6379:6379
restart: unless-stopped
postgres:
profiles:
- postgres
image: postgres:latest
ports:
- 5432:5432
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-restai}
POSTGRES_USER: ${POSTGRES_USER:-restai}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-CHANGEME!}
POSTGRES_HOST: ${POSTGRES_HOST:-127.0.0.1}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
volumes:
- pgdata:/var/lib/postgresql/data
mysql:
profiles:
- mysql
image: mysql:8.0
restart: unless-stopped
ports:
- 3306:3306
volumes:
- mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD:-CHANGEME!}
- MYSQL_DATABASE=${MYSQL_DB:-restai}
restai:
build:
context: .
dockerfile: Dockerfile
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
ports:
- 9000:9000
volumes:
- local_cache:/home/user/.cache
environment:
LOG_LEVEL: DEBUG
OPENAI_API_KEY: ${OPENAI_API_KEY}
RESTAI_DEV: ${RESTAI_DEV}
WITH_GPU: ${WITH_GPU:-false}
volumes:
mysql_data:
pgdata:
local_cache: