forked from Politiwatch/polititweet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (56 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
58
version: "3.2"
services:
app:
build: .
image: polititweet
restart: always
volumes:
- ./polititweet:/usr/src/polititweet
- static_vol:/usr/src/polititweet/static
command: >
sh -c "./launch.sh"
env_file:
- ./polititweet/polititweet/.env
depends_on:
- db
stream:
image: polititweet
restart: always
volumes:
- ./polititweet:/usr/src/polititweet
command: >
sh -c "python manage.py stream"
env_file:
- ./polititweet/polititweet/.env
depends_on:
- db
scan:
image: polititweet
volumes:
- ./polititweet:/usr/src/polititweet
command: > # se ejecutara cada 1 hora desde cron
sh -c "python manage.py scan"
env_file:
- ./polititweet/polititweet/.env
depends_on:
- db
db:
image: postgres:13-alpine
restart: always
volumes:
- db_vol:/var/lib/postgresql/data
env_file:
- ./polititweet/polititweet/.env
nginx:
image: nginx:1.13
restart: always
ports:
- 81:80
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- static_vol:/usr/src/polititweet/static
depends_on:
- app
volumes:
db_vol:
static_vol: