-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
78 lines (72 loc) · 1.82 KB
/
docker-compose.dev.yml
File metadata and controls
78 lines (72 loc) · 1.82 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
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
services:
app:
build:
args:
APP_ENVIRONMENT: dev
stdin_open: true
tty: true
ports:
- "5001:5001"
command: bash -c "/app/scripts/wait_for_db.sh && /app/scripts/entrypoint-dev.sh"
environment:
- APP_SETTINGS=config.LocalConfig
container_name: llm_binding.dev.backend
volumes:
- ./backend/:/app
- be_exec_dev:/app/scripts
depends_on:
- db
redis:
container_name: llm_binding.dev.redis
volumes:
- redis_data_dev:/data
db:
container_name: llm_binding.dev.db
volumes:
- mysql_data_dev:/var/lib/mysql
entrypoint:
sh -c "
echo 'CREATE DATABASE IF NOT EXISTS $MYSQL_TEST_DATABASE; GRANT ALL PRIVILEGES ON $MYSQL_TEST_DATABASE.* TO $MYSQL_USER;' > /docker-entrypoint-initdb.d/init.sql;
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci"
streamlit_app:
container_name: llm_binding.dev.frontend
stdin_open: true
tty: true
ports:
- "8501:8501"
environment:
- API_HOST=http://app:5001
volumes:
- ./frontend/:/app
- fe_exec_dev:/app/.streamlit
worker:
build:
args:
APP_ENVIRONMENT: dev
container_name: llm_binding.dev.worker
command: celery --app worker.tasks.celery worker --loglevel=info
env_file:
- .env
volumes:
- ./backend/:/app
- be_exec_dev:/app/scripts
depends_on:
- app
beat:
build:
args:
APP_ENVIRONMENT: dev
container_name: llm_binding.dev.beat
command: celery --app worker.celery_beat.celery_beat beat --loglevel=info
env_file:
- .env
depends_on:
- worker
volumes:
- ./backend/:/app
- be_exec_dev:/app/scripts
volumes:
be_exec_dev:
fe_exec_dev:
mysql_data_dev:
redis_data_dev: