-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·56 lines (51 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
executable file
·56 lines (51 loc) · 1.15 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
53
54
55
56
version: "3.3"
services:
calendr_api:
build:
context: ./backend
container_name: calendr_api
depends_on:
- calendr_db
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./backend/.env.dev
calendr_worker:
build:
context: ./backend
dockerfile: Dockerfile
container_name: calendr_worker
entrypoint: ./entrypoint.worker.sh
depends_on:
- calendr_api
- calendr_db
- calendr_redis
command: celery -A calendr worker -l info
volumes:
- ./backend:/usr/src/app/
env_file:
- ./backend/.env.dev
calendr_db:
container_name: calendr_db
image: postgres:15.2-alpine
volumes:
- calendr_postgres:/var/lib/postgresql/data/
ports:
- 2345:5432
environment:
- POSTGRES_USER=calendr
- POSTGRES_PASSWORD=password
- POSTGRES_DB=calendr
calendr_redis:
container_name: calendr_redis
image: redis:7.0.9-alpine
volumes:
- calendr_redis:/var/lib/redis/data/
ports:
- 6379:6379
volumes:
calendr_postgres:
calendr_redis: