-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (49 loc) · 1.14 KB
/
docker-compose.dev.yml
File metadata and controls
52 lines (49 loc) · 1.14 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
version: '3.8'
services:
api:
build:
target: development
environment:
LOG_LEVEL: debug
ENVIRONMENT: development
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./alembic:/app/alembic
ports:
- "8000:8000"
- "5678:5678" # debugpy
command: >
sh -c "
alembic upgrade head &&
uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
"
celery-worker:
build:
target: development
environment:
LOG_LEVEL: debug
ENVIRONMENT: development
volumes:
- ./src:/app/src
command: >
watchmedo auto-restart
--directory=./src
--pattern=*.py
--recursive
-- celery -A src.workers.celery_app worker --loglevel=debug
# PgAdmin for database management
pgadmin:
image: dpage/pgadmin4:latest
container_name: agent-advisor-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "5050:80"
networks:
- agent-advisor-network
depends_on:
- postgres
restart: unless-stopped