-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
57 lines (50 loc) · 1.19 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
version: "3.3"
services:
web:
build: .
# To mimic a production runtime, uncomment:
# entrypoint: ["gunicorn", "-w", "2", "--bind", "0.0.0.0:5000", "wsgi:application"]
entrypoint: ["python", "wsgi.py"]
volumes:
- .:/app
- results:/results
ports:
- "5000:5000"
depends_on:
- "db"
- "mywiki"
- "redis"
worker:
build: .
volumes:
- .:/app
- results:/results
entrypoint: ["celery", "--app", "quarry.web.worker", "worker", ]
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- "db"
- "redis"
redis:
image: redis:alpine3.18
# wikireplica simulator
mywiki:
image: mariadb:10.4-focal
volumes:
- ./docker-replica/replica.sql:/docker-entrypoint-initdb.d/replica.sql
environment:
MYSQL_USER: repl
MYSQL_PASSWORD: repl
MYSQL_DATABASE: repl
MYSQL_RANDOM_ROOT_PASSWORD: 1
db:
image: mariadb:10.1.48-bionic
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
environment:
MYSQL_USER: quarry
MYSQL_PASSWORD: quarry
MYSQL_DATABASE: quarry
MYSQL_RANDOM_ROOT_PASSWORD: 1
volumes:
results: