forked from GeographicaGS/Elcano-iepg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
131 lines (110 loc) · 2.63 KB
/
docker-compose.dev.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
pgsql:
image: geographica/postgis:postgresql-9.1.2-postgis-1.5.8-patched
volumes_from:
- elcano_iepg_pgdata
environment:
- POSTGRES_PASSWD=${POSTGRES_PASSWORD}
# DEV config
#DEV
volumes:
- ./database:/usr/src/app
ports:
- "5432:5432"
redis:
image: redis:2.8
volumes_from:
- elcano_iepg_redisdata
command: redis-server --appendonly yes
# DEV config
ports:
- "6379:6379"
api_backend:
image: geographica/elcano_iepg_api:latest
links:
- pgsql:pgsql
- redis:redis
volumes_from:
- elcano_iepg_mediadata
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- API_SECRET_KEY=${API_SECRET_KEY}
command: python run_backend.py
# Dev variables
ports:
- "5000:5000"
#DEV
volumes:
- ./www-srv/src:/usr/src/app
api_frontend:
image: geographica/elcano_iepg_api:latest
links:
- pgsql:pgsql
- redis:redis
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TWITTER_API_KEY=${TWITTER_API_KEY}
- TWITTER_API_SECRET=${TWITTER_API_SECRET}
- TWITTER_TOKEN=${TWITTER_TOKEN}
- TWITTER_TOKEN_SECRET=${TWITTER_TOKEN_SECRET}
- API_SECRET_KEY=${API_SECRET_KEY}
command: python run_frontend.py
# Dev variables
ports:
- "5001:5000"
#command: python run_frontend.py
#DEV
volumes:
- ./www-srv/src:/usr/src/app
api_explora:
image: geographica/elcano_iepg_api:latest
links:
- pgsql:pgsql
- redis:redis
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- API_SECRET_KEY=${API_SECRET_KEY}
# Dev variables
ports:
- "5002:5000"
command: python run_explora.py
#DEV
volumes:
- ./www-srv/src:/usr/src/app
nginx:
build: .
dockerfile: nginx/dev/Dockerfile
ports:
- "80:80"
volumes_from:
- elcano_iepg_mediadata
links:
- api_explora:api_explora
- api_backend:api_backend
- api_frontend:api_frontend
#DEV
volumes:
- ./www/cdn:/cdn
- ./www/src:/src
www_builder:
build: www
links:
- pgsql:pgsql
volumes:
- ./www/src:/usr/src/app
- ./www/cdn:/usr/src/cdn
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
#command: npm run-script builder-watcher
command: npm run-script builder-watcher-frontend
# command: npm run-script builder-watcher-backend
#command: npm run-script builder-watcher-explora
#command: npm run-script debug