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