-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
150 lines (139 loc) · 3.18 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '2'
services:
web:
image: eaudeweb/scratch:latest
container_name: scratch.app
environment:
- DJANGO_MIGRATE=yes
- DJANGO_COLLECT_STATIC=yes
- DJANGO_INDEX_CONTENT=yes
- UWSGI_PORT=8000
- TZ=Europe/Bucharest
env_file:
- docker/app.env
- docker/db.env
- docker/tika.env
- docker/cachet.env
depends_on:
- db
- tika
volumes:
- static:/var/local/scratch/static
- media:/var/local/scratch/app/media
ports:
- 8000:8000
async:
image: eaudeweb/scratch:latest
container_name: scratch.async
env_file:
- docker/app.env
- docker/db.env
- docker/redis.env
- docker/tika.env
- docker/cachet.env
environment:
- TZ=Europe/Bucharest
depends_on:
- web
- db
- redis
- tika
ports:
- 82:8080
command: ['qcluster']
cron:
image: eaudeweb/scratch:latest
container_name: scratch.cron
environment:
- TZ=Europe/Bucharest
env_file:
- docker/app.env
- docker/db.env
- docker/tika.env
- docker/cachet.env
depends_on:
- db
- tika
ports:
- 83:8080
entrypoint: ["./docker-entrypoint.cron.sh"]
db:
image: postgres:15-alpine
container_name: scratch.db
environment:
- TZ=Europe/Bucharest
env_file:
- docker/db.env
volumes:
- data:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: scratch.elasticsearch
environment:
- discovery.type=single-node
- http.port=9200
- http.cors.enabled=true
- http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- bootstrap.system_call_filter=false
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
redis:
image: redis:alpine
container_name: scratch.redis
smtp:
image: eeacms/postfix
container_name: scratch.smtp
restart: always
hostname: helpdesk.eaudeweb.ro
env_file:
- docker/app.env
tika:
image: logicalspark/docker-tikaserver
container_name: scratch.tika
ports:
- 9998:9998
cachet:
image: cachethq/docker:latest
container_name: scratch.cachet
ports:
- 81:8000
links:
- db:postgres
env_file:
- docker/cachet.env
environment:
- DEBUG=false
depends_on:
- db
- redis
- smtp
restart: on-failure
cachet-url-monitor:
image: mtakaki/cachet-url-monitor
container_name: scratch.cachet-url-monitor
volumes:
- ./config:/usr/src/app/config/
depends_on:
- cachet
command: chmod +x ./config/docker-entrypoint.cachet.sh
entrypoint: ["./config/docker-entrypoint.cachet.sh"]
volumes:
data:
driver: local
static:
driver: local
media:
driver: local
esdata:
driver: local