-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (48 loc) · 1.08 KB
/
docker-compose.dev.yml
File metadata and controls
53 lines (48 loc) · 1.08 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
version: '2.1'
services:
database:
container_name: mealplan_db
image: postgres:13
restart: "no"
env_file: environment.conf
ports:
- 5432:5432
volumes:
- db_volume:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
app:
container_name: mealplan
build:
context: app
dockerfile: Dockerfile.dev
restart: "no"
env_file: environment.conf
ports:
- 5000:5000
- 10001:10001 # debugging
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
celery_worker:
condition: service_started
redis:
container_name: redis
image: redis:7-alpine
celery_worker:
container_name: celery_worker
build:
context: app
dockerfile: Dockerfile.dev
command: celery -A application.cookidoo_celery_tasks worker --loglevel=info
restart: "no"
env_file: environment.conf
depends_on:
- redis
volumes:
db_volume: