-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 974 Bytes
/
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
version: '3'
services:
redis:
image: "redis:alpine"
web:
build: .
command: python /app/manage.py runserver 0.0.0.0:8000
env_file:
- .env
volumes:
- .:/app
- ./media:/app/media
- /docker/curate/mysqld:/var/run/mysql
ports:
- "8000:8000"
depends_on:
- db
- redis
- celery
- es
celery:
build: .
command: celery -A curate worker -l info
volumes:
- .:/app
depends_on:
- db
- redis
db:
image: mariadb:10.4
ports:
- "3307:3306"
env_file:
- .env
command: [
'--wait_timeout=28800',
]
volumes:
- /docker/curate/mysqldata:/var/lib/mysql
- /docker/curate/mysqld:/var/run/mysql
es:
image: elasticsearch:7.17.8
environment:
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- /docker/curate/es:/usr/share/elasticsearch/data:rw
ports:
- "9200:9200"