-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (90 loc) · 2.31 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
jobsgee:
build:
context: .
dockerfile: ./docker/prod/Dockerfile
hostname: jobsgee
command: uv run uvicorn main:app --host 0.0.0.0 --port 8080 --reload
environment:
- HTTPS=false
- CELERY_BROKER_URL=redis://queejobs:6379/0
- CELERY_RESULT_BACKEND=redis://queejobs:6379/0
- SERVER_URL=${SERVER_URL}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REALM=${REALM}
- SERVER_EMAIL=${SERVER_EMAIL}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_SENDER=${EMAIL_SENDER}
- EMAIL_PASSWORD={EMAIL_PASSWORD}
container_name: jobsgee
privileged: true
ports:
- "8086:8080"
volumes:
- .:/home/suporte
- ../volumes/gee.json:/var/sec/gee.json
- ../volumes/logs:/logs
networks:
- web_lapig
worker:
build:
context: .
dockerfile: ./docker/prod/Dockerfile
command: uv run celery -A worker.celery worker --loglevel=info -E --logfile=logs/celery.log
volumes:
- .:/home/suporte
- ../volumes/gee.json:/var/sec/gee.json
- ../volumes/logs:/logs
environment:
- CELERY_BROKER_URL=redis://queejobs:6379/0
- CELERY_RESULT_BACKEND=redis://queejobs:6379/0
- SERVER_EMAIL=${SERVER_EMAIL}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_SENDER=${EMAIL_SENDER}
- EMAIL_PASSWORD={EMAIL_PASSWORD}
depends_on:
- queejobs
networks:
- web_lapig
dashboard:
build:
context: .
dockerfile: ./docker/prod/Dockerfile
command: uv run celery --broker=redis://queejobs:6379/0 flower --port=5555
ports:
- 5556:5555
volumes:
- .:/home/suporte
environment:
- CELERY_BROKER_URL=redis://queejobs:6379/0
- CELERY_RESULT_BACKEND=redis://queejobs:6379/0
depends_on:
- jobsgee
- queejobs
- worker
networks:
- web_lapig
queejobs:
image: redis:7
hostname: queejobs
container_name: queejobs
volumes:
- ../volumes/redis_data:/data
restart: always
networks:
- web_lapig
mongodbjobs:
image: mongo:4.4
hostname: mongodbjobs
container_name: mongodbjobs
volumes:
- ../volumes/mongodb_data:/data/db
restart: always
ports:
- "27050:27017"
networks:
- web_lapig
networks:
web_lapig:
external: true