forked from th3-j0k3r/Patronus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (53 loc) · 1.36 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
version: '3'
services:
patronus-frontend:
build:
context: ./front-end/
dockerfile: Dockerfile
image: patronus-frontend
container_name: patronus-frontend
restart: always
ports:
- 3000:3000
env_file:
- ./.env
environment:
- NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
- GOOGLE_ID=${GOOGLE_ID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL}
- NEXT_PUBLIC_AUTH_CALLBACK=${NEXT_PUBLIC_AUTH_CALLBACK}
redis:
image: redis
ports:
- "6379:6379"
core-machine:
image: patronus-main
working_dir: /root/Patronus/
container_name: patronus-cron
build:
context: .
dockerfile: Dockerfile
command: ./cron.sh
app:
image: patronus-main
container_name: patronus-api-server
build:
context: .
dockerfile: Dockerfile
command: gunicorn -w 4 --bind 0.0.0.0:8090 app:app
depends_on:
- core-machine
ports:
- "8090:8090"
environment:
- PORT=8090
- REDIS_HOST=redis
- REDIS_PORT=6379
worker:
image: patronus-main
working_dir: /root/
container_name: patronus-worker
depends_on:
- redis
command: rq worker --url redis://redis:6379 --path /root/