-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (48 loc) · 962 Bytes
/
docker-compose.yaml
File metadata and controls
53 lines (48 loc) · 962 Bytes
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
services:
migrate:
build: .
command: alembic -c /api/alembic.ini upgrade head
env_file:
- .env
depends_on:
- db
newhorizons_api:
build: .
container_name: new_horizons_api
env_file:
- .env
depends_on:
- db
- redis
- migrate
ports:
- "9002:9002"
restart: unless-stopped
db:
image: postgres:16
container_name: new_horizons_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: newhorizons
ports:
- "5432:5432"
restart: unless-stopped
redis:
image: redis:7
container_name: new_horizons_redis
ports:
- "6379:6379"
restart: unless-stopped
celery_worker:
build: .
container_name: new_horizons_celery
env_file:
- .env
depends_on:
- db
- redis
command: celery -A app.tasks worker --loglevel=info
restart: unless-stopped
volumes:
pgdata: