-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
78 lines (76 loc) · 1.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# docker-compose.yml
version: '3'
services:
postgres:
image: postgres:13
container_name: 'awt_app_postgres'
restart: always
environment:
- POSTGRES_DB=AWT
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- postgresDatas:/var/lib/postgresql/data
redis:
image: redis:latest
restart: always
container_name: 'awt_app_redis'
command: redis-server
ports:
- '6379:6379'
web:
build: .
restart: always
container_name: 'awt_app_django'
command: bash -c 'python manage.py migrate auth && python manage.py migrate && python manage.py runserver 0.0.0.0:8000'
ports:
- '8000:8000'
depends_on:
- postgres
environment:
- AAD_TENANT_ID=xxxxx
- AAD_CLIENT_ID=xxxxx
celery:
build: .
container_name: 'awt_app_celery'
command: celery -A ApiWatchTower worker -B --concurrency=10
links:
- redis
depends_on:
- web
- redis
- postgres
environment:
- AAD_TENANT_ID=xxxxx
- AAD_CLIENT_ID=xxxxx
celery-beat:
build: .
restart: always
container_name: 'awt_celery_beat'
command: celery -A ApiWatchTower beat -l info -S django --pidfile=
links:
- redis
depends_on:
- web
- redis
- celery
- postgres
environment:
- AAD_TENANT_ID=xxxxx
- AAD_CLIENT_ID=xxxxx
grafana:
image: grafana/grafana:latest
container_name: 'awt_grafana'
ports:
- 3000:3000
volumes:
- ./grafana-storage:/var/lib/grafana
depends_on:
- postgres
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=abozar
volumes:
postgresDatas: