-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.07 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
services:
seekdb:
image: quay.io/oceanbase/seekdb
ports:
- "2881:2881"
environment:
ROOT_PASSWORD: ${OCEANBASE_ROOT_PASSWORD:-}
volumes:
- oceanbase-data:/var/lib/oceanbase
healthcheck:
test: ["CMD-SHELL", "mysql -h127.0.0.1 -P2881 -uroot $${ROOT_PASSWORD:+-p$$ROOT_PASSWORD} -e 'SELECT 1' >/dev/null 2>&1"]
interval: 5s
timeout: 5s
retries: 30
app:
build:
context: .
dockerfile: Dockerfile
container_name: bubseek
depends_on:
seekdb:
condition: service_healthy
env_file:
- .env
environment:
OCEANBASE_HOST: seekdb
OCEANBASE_PORT: 2881
BUB_TAPESTORE_SQLALCHEMY_URL: mysql+oceanbase://${OCEANBASE_USER:-root}:${OCEANBASE_PASSWORD:-}@${OCEANBASE_HOST:-seekdb}:${OCEANBASE_PORT:-2881}/${OCEANBASE_DATABASE:-bub}
volumes:
- ${BUB_WORKSPACE_PATH:-.}:/workspace
- ${BUB_HOME:-${HOME}/.bub}:/data
- ${BUB_AGENT_HOME:-${HOME}/.agents}:/root/.agents
stdin_open: true
tty: true
restart: unless-stopped
volumes:
oceanbase-data: