forked from GeographicaGS/Elcano-iepg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yml
97 lines (79 loc) · 2.16 KB
/
docker-compose.staging.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
pgsql:
restart: always
image: geographica/postgis:postgresql-9.1.2-postgis-1.5.8-patched
ports:
- 55432:5432
volumes_from:
- elcano_iepg_pgdata
environment:
- POSTGRES_PASSWD=${POSTGRES_PASSWORD}
redis:
restart: always
image: redis:2.8
volumes_from:
- elcano_iepg_redisdata
command: redis-server --appendonly yes
api_backend:
restart: always
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: uwsgi -s 0.0.0.0:5000 --enable-threads -w backend:app
api_frontend:
restart: always
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: uwsgi -s 0.0.0.0:5000 --enable-threads -w frontend:app
api_explora:
restart: always
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}
command: uwsgi -s 0.0.0.0:5000 --enable-threads -w explora:app
# TODO: REMOVE this container, we should use AMAZON Cloudfront + Lincoln NGINX
nginx:
restart: always
build: .
dockerfile: nginx/staging/Dockerfile
volumes_from:
- elcano_iepg_mediadata
links:
- api_explora:api_explora
- api_backend:api_backend
- api_frontend:api_frontend
www_builder:
build: www
links:
- pgsql:pgsql
volumes:
- ./www/cdn:/usr/src/cdn
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}