-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 1.18 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
version: '3.8'
services:
backend:
build: ./backend
ports:
- "8000:8000"
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
- POSTGRES_DB=awesome_list
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
depends_on:
- db
- redis
volumes:
- ./backend:/app
frontend:
build: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
environment:
- VITE_API_URL=http://localhost:8000
db:
image: postgres:13-alpine
environment:
- POSTGRES_DB=awesome_list
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:6-alpine
ports:
- "6379:6379"
celery:
build: ./backend
command: celery -A config worker -l info
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- CELERY_BROKER_URL=redis://redis:6379/0
depends_on:
- redis
- backend
volumes:
postgres_data: