-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.uffizzi.yml
118 lines (110 loc) · 2.65 KB
/
docker-compose.uffizzi.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3.7"
x-uffizzi:
ingress:
service: nginx
port: 8081
services:
server:
image: "${SERVER_IMAGE}"
volumes:
- ./grai-server/app/:/usr/src/app/
ports:
- 8000:8000
environment:
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_NAME=grai
- DB_USER=grai
- DB_PASSWORD=grai
- DJANGO_SUPERUSER_PASSWORD=super_secret
- DJANGO_SUPERUSER_WORKSPACE=Workspace1
- SERVER_HOST=localhost
- CELERY_BROKER=redis://127.0.0.1:6379/0
- CELERY_BACKEND=redis://127.0.0.1:6379/0
deploy:
resources:
limits:
memory: 1000M
db:
image: postgres
environment:
- POSTGRES_USER=grai
- POSTGRES_PASSWORD=grai
- POSTGRES_DB=grai
ports:
- 5432:5432
command:
[
"postgres",
"-c",
"wal_level=logical",
"-c",
"max_replication_slots=10",
"-c",
"max_wal_senders=5",
]
frontend:
image: "${FRONTEND_IMAGE}"
entrypoint: /bin/sh
command:
- "-c"
- 'REACT_APP_SERVER_URL=$$UFFIZZI_URL/api /usr/share/nginx/html/env.sh && nginx -g "daemon off;"'
deploy:
resources:
limits:
memory: 1000M
redis:
image: redis/redis-stack-server:6.2.6-v9
ports:
- "6379:6379"
deploy:
resources:
limits:
memory: 500M
nginx:
image: nginx:alpine
volumes:
- ./nginx-uffizzi:/etc/nginx
celery-worker:
image: "${WORKER_IMAGE}"
volumes:
- ./grai-server/app/:/usr/src/app/
environment:
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_NAME=grai
- DB_USER=grai
- DB_PASSWORD=grai
- DJANGO_SUPERUSER_PASSWORD=super_secret
- DJANGO_SUPERUSER_WORKSPACE=Workspace1
- SERVER_HOST=localhost
- CELERY_BROKER=redis://127.0.0.1:6379/0
- CELERY_BACKEND=redis://127.0.0.1:6379/0
- SECRET_KEY="123456789"
deploy:
resources:
limits:
memory: 1000M
celery-beat-worker:
image: "${BEAT_WORKER_IMAGE}"
volumes:
- ./grai-server/app/:/usr/src/app/
environment:
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_NAME=grai
- DB_USER=grai
- DB_PASSWORD=grai
- DJANGO_SUPERUSER_PASSWORD=super_secret
- DJANGO_SUPERUSER_WORKSPACE=Workspace1
- SERVER_HOST=localhost
- CELERY_BROKER=redis://127.0.0.1:6379/0
- CELERY_BACKEND=redis://127.0.0.1:6379/0
- SECRET_KEY="123456789"
deploy:
resources:
limits:
memory: 500M