-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (44 loc) · 1.1 KB
/
docker-compose.yaml
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
version: "3.9"
services:
database:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: verySecretPassword
POSTGRES_USER: administrator
POSTGRES_DB: todo
app:
build:
context: .
dockerfile: Dockerfile.dev
restart: always
environment:
CELERY_RESULT_BACKEND: db+postgresql://administrator:verySecretPassword@database:5432/todo
CELERY_BROKER_URL: sqs://
ports:
- "6400:6400"
volumes:
- ./todo:/app/todo
- ./credentials:/root/.aws/credentials
depends_on:
- database
- redis
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
worker:
build:
context: .
dockerfile: Dockerfile.dev
restart: always
environment:
CELERY_RESULT_BACKEND: db+postgresql://administrator:verySecretPassword@database:5432/todo
CELERY_BROKER_URL: sqs://
volumes:
- ./todo:/app/todo
- ./credentials:/root/.aws/credentials
command: poetry run celery --app todo.tasks.ical worker --loglevel=info
depends_on:
- redis