forked from stoltzmaniac/foco_ds_portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.54 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
60
61
62
63
64
65
66
67
68
69
version: '3.6'
services:
web:
image: web
build:
context: ./
dockerfile: Dockerfile
volumes:
- '.:/usr/src/app'
ports:
- 5002:5000
environment:
- MONGODB_HOST=web-mongo
- PYTHONUNBUFFERED=0
- APP_NAME=${APP_NAME}
- FLASK_DEBUG=${FLASK_DEBUG}
- APP_SETTINGS=${APP_SETTINGS}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_TEST_URL=${DATABASE_TEST_URL}
- SECRET_KEY=${SECRET_KEY}
- MONGO_URI=${MONGO_URI}
- MONGODB_DB=${MONGODB_DB}
- MONGODB_PORT=${MONGODB_PORT}
- TWTR_CONSUMER_KEY=${TWTR_CONSUMER_KEY}
- TWTR_CONSUMER_SECRET=${TWTR_CONSUMER_SECRET}
- TWTR_TOKEN_KEY=${TWTR_TOKEN_KEY}
- TWTR_TOKEN_SECRET=${TWTR_TOKEN_SECRET}
- QUANDL_KEY=${QUANDL_KEY}
- S3_BUCKET= ${S3_BUCKET}
- S3_KEY=${S3_KEY}
- S3_SECRET=${S3_SECRET}
depends_on:
- web-db
web-db:
container_name: web-db
build:
context: ./project/server/db
dockerfile: Dockerfile
ports:
- 5435:5432
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
web-mongo:
container_name: web-mongo
build:
context: ./project/server/db_mongo
dockerfile: Dockerfile
ports:
- 27017:27017
web-nginx:
container_name: web-nginx
build:
context: ./project/nginx
dockerfile: Dockerfile
links:
- web
ports:
- 80:80
- 443:443
volumes:
- $NGINXCONF:/etc/nginx/conf.d
- $SSLROOT:/etc/letsencrypt/live