-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (56 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
64 lines (56 loc) · 1.09 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
version: "3"
services:
redis:
image: redis:alpine
ports:
- 6377:6379
restart: always
volumes:
- geo_redis_data:/data
postgis:
image: kartoza/postgis
ports:
- 5430:5432
restart: always
volumes:
- geo_postgres_data:/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123123
POSTGRES_DB: postgres
load_data:
build: ./
image: geo_redis_python
env_file:
- .env
command: python load_data.py
depends_on:
- postgis
- redis
worker:
build: ./
image: geo_redis_python
env_file:
- .env
command: celery -A task worker --loglevel=INFO --pool=solo
depends_on:
- load_data
scheduler:
build: ./
image: geo_redis_python
env_file:
- .env
command: celery -A worker beat --loglevel=ERROR
depends_on:
- worker
web:
build: ./
image: geo_redis_python
env_file:
- .env
command: gunicorn --bind 0.0.0.0:5000 app_config:flask_app
depends_on:
- scheduler
volumes:
geo_redis_data:
geo_postgres_data: