-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
58 lines (52 loc) · 1.1 KB
/
docker-compose.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
57
58
version: '3.8'
services:
redis:
image: redis:7.0
volumes:
- .:/code
db:
image: postgres:14
environment:
POSTGRES_PASSWORD: notifico
volumes:
- postgres:/var/lib/postgresql/data
- .:/code
bots:
build: .
volumes:
- .:/code
depends_on:
- redis
- db
environment:
DATABASE_URL: postgresql://postgres:notifico@db/postgres
REDIS_URL: "redis://redis/0"
command: poetry run notifico bots start
workers:
build: .
volumes:
- .:/code
depends_on:
- redis
- db
environment:
DATABASE_URL: postgresql://postgres:notifico@db/postgres
REDIS_URL: "redis://redis/0"
command: poetry run celery -A notifico.worker worker
frontend:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
depends_on:
- redis
- db
environment:
FLASK_DEBUG: 1
DATABASE_URL: postgresql://postgres:notifico@db/postgres
REDIS_URL: "redis://redis/0"
FLASK_APP: "notifico:create_app"
command: poetry run notifico run --host 0.0.0.0
volumes:
postgres: