-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.14 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
version: "3"
services:
redis:
image: redis:5.0.7-alpine
networks:
- inpi-network
dashboard:
image: dataesr/dashboard-crawler:1.1
ports:
- 9181:9181
command: rq-dashboard -H redis
networks:
- inpi-network
depends_on:
- redis
worker:
build: .
privileged: true
command: >
/bin/sh -c "python3.8 manage.py run_worker"
environment:
APP_SETTINGS: application.server.config.DevelopmentConfig
MOUNTED_VOLUME_TEST: '/volume_inpi/'
volumes:
- /run/media/julia/DATA/INPI/:/volume_inpi
env_file:
- .env
networks:
- inpi-network
depends_on:
- redis
web:
build: .
privileged: true
ports:
- 5004:5000
command: python3.8 /src/manage.py run -h 0.0.0.0
environment:
FLASK_DEBUG: 1
APP_SETTINGS: application.server.config.DevelopmentConfig
MOUNTED_VOLUME_TEST: '/volume_inpi/'
volumes:
- /run/media/julia/DATA/INPI/:/volume_inpi
env_file:
- .env
networks:
- inpi-network
depends_on:
- worker
networks:
inpi-network:
driver: bridge
volumes:
volume_inpi: