-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (73 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
73 lines (73 loc) · 1.82 KB
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
version: '3'
services:
postgres:
restart: always
image: postgres:10.4
environment:
- POSTGRES_USER=mtracker3
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=mtracker3
ports:
- "127.0.0.1:5432:5432"
volumes:
# If you are using WSL2, you'll need to set the volume folder
# to a location on your WSL2 file system (i.e not under `/mnt/`)
- "./data/postgres:/var/lib/postgresql/data"
scheduler:
restart: always
build:
context: .
dockerfile: deploy/docker/scheduler.Dockerfile
environment:
- DATABASE_URL=postgresql://mtracker3:postgres@postgres:5432/mtracker3
- REDIS_HOST=redis
links:
- redis
- postgres
web:
restart: always
build:
context: .
dockerfile: deploy/docker/web.Dockerfile
environment:
- DATABASE_URL=postgresql://mtracker3:postgres@postgres:5432/mtracker3
- REDIS_HOST=redis
- LOG_DIR=/opt/logs
- PROXY_DEFAULT
- PROXY_URL
- PROXY_METHOD
- PROXY_PATH
- MWDB_URL
- MWDB_TOKEN
ports:
- "127.0.0.1:80:5000"
volumes:
- "./data/logs:/opt/logs"
links:
- redis
- postgres
worker:
restart: always
build:
context: .
dockerfile: deploy/docker/worker.Dockerfile
environment:
- DATABASE_URL=postgresql://mtracker3:postgres@postgres:5432/mtracker3
- REDIS_HOST=redis
- LOG_DIR=/opt/logs
- PROXY_DEFAULT
- PROXY_URL
- PROXY_METHOD
- PROXY_PATH
- MWDB_URL
- MWDB_TOKEN
volumes:
- "./data/logs:/opt/logs"
- "./src/private_modules:/usr/src/app/src/modules"
links:
- redis
- postgres
command: bash -c "pip install -r /usr/src/app/src/modules/requirements.txt; python3 -m mtracker.worker /usr/src/app/src/modules"
redis:
restart: always
image: redis