-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.dev.yml
56 lines (51 loc) · 1.13 KB
/
docker-compose.dev.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
version: "3.7"
services:
api:
container_name: gita-api
image: bhagavadgita/bhagavad-gita-api
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 8081:8081
volumes:
- ./:/app
stdin_open: true
tty: true
depends_on:
- database
env_file:
- .env
restart: on-failure:5
database:
container_name: gita-db
image: postgres:12-alpine
volumes:
- ./db_data:/var/lib/postgresql
env_file:
- .env
restart: on-failure:5
redis-server:
container_name: gita-redis
image: redis:6.0-alpine
restart: on-failure:5
celery-worker:
container_name: gita-celery-worker
image: bhagavadgita/bhagavad-gita-api
command: celery -A bhagavad_gita_api.cronjobs worker -l INFO
depends_on:
- api
- redis-server
env_file:
- .env
restart: on-failure:5
celery-beat-worker:
container_name: gita-celery-beat-worker
image: bhagavadgita/bhagavad-gita-api
command: celery -A bhagavad_gita_api.cronjobs beat -l INFO
depends_on:
- api
- redis-server
env_file:
- .env
restart: on-failure:5