-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (48 loc) · 1.1 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
services:
web:
build: .
command: python /app/manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
env_file:
- .env
db:
# container_name: postgresdb
image: postgres:16-alpine
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=${DJANGO_DB_USER}
- POSTGRES_PASSWORD=${DJANGO_DB_PASS}
- POSTGRES_DB=${DJANGO_DB_NAME}
ports:
- "5432:5432"
redis:
image: redis
ports:
- "6379:6379"
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
restart: always
worker:
build:
context: .
dockerfile: Dockerfile
command: ['celery','-A', 'config', 'worker', '--loglevel', 'info']
depends_on:
- redis
restart: always
ollama:
image: ollama/ollama
ports:
- "11435:11435"
restart: always
volumes:
postgres_data: