-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (41 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·46 lines (41 loc) · 959 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
version: "3"
services:
db:
image: postgres:14-alpine
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis:7.0.5-alpine
ports:
- "6379:6379"
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
web:
build: .
command: >
sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "${APP_PORT}:8000"
depends_on:
- db
celery:
build: .
command: celery -A facecheckin_backend worker -l info
volumes:
- .:/code
depends_on:
- redis
- db
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
postgres_data: