-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-dev.yml
127 lines (126 loc) · 3.26 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
version: '3'
services:
nginx:
image: nginx:1.19.2
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./templates:/etc/nginx/templates/
- './ssl:/ssl/'
depends_on:
- evides
- resview
networks:
- evidssnet
environment:
- EVIDSSDOCS_IP=$EVIDSSDOCS_IP
- EVIDES_IP=$EVIDES_IP
- RESVIEW_IP=$RESVIEW_IP
- REDASH_IP=$REDASH_IP
- EVIDSS_DOMAINNAME=$EVIDSS_DOMAINNAME
- EVIDES_PORT=$EVIDES_PORT
- RESVIEW_PORT=$RESVIEW_PORT
flyway:
image: flyway/flyway
command: -url=jdbc:postgresql://${MAIN_HOST}:${MAIN_PORT}/${MAIN_DB} -schemas=public -user=${DBWRITE_USER} -password=${DBWRITE_PWD} migrate
volumes:
- ./database/migrations:/flyway/sql
networks:
- evidssnet
# network_mode: host
evides:
build: './evides'
ports:
- '${EVIDES_PORT}:${EVIDES_PORT}'
networks:
- evidssnet
environment:
- GITHUB_PAT=$GITHUB_PAT
- EVIDES_PORT=$EVIDES_PORT
- AUTH0_USER=$AUTH0_USER
- AUTH0_KEY=$AUTH0_KEY
- AUTH0_SECRET=$AUTH0_SECRET
- AFDC_API_KEY=$AFDC_API_KEY
- MAPBOX_ACCESS_TOKEN=$MAPBOX_ACCESS_TOKEN
- MAIN_USER=$DBWRITE_USER
- MAIN_PWD=$DBWRITE_PWD
- MAIN_HOST=$MAIN_HOST
- MAIN_PORT=$MAIN_PORT
- MAIN_DB=$MAIN_DB
restart: always
resview:
build: './resview'
ports:
- '${RESVIEW_PORT}:${RESVIEW_PORT}'
networks:
- evidssnet
environment:
- GITHUB_PAT=$GITHUB_PAT
- RESVIEW_PORT=$RESVIEW_PORT
- AFDC_API_KEY=$AFDC_API_KEY
- MAPBOX_ACCESS_TOKEN=$MAPBOX_ACCESS_TOKEN
- MAIN_USER=$DBREAD_USER
- MAIN_PWD=$DBREAD_PWD
- MAIN_HOST=$MAIN_HOST
- MAIN_PORT=$MAIN_PORT
- MAIN_DB=$MAIN_DB
restart: always
tripgen:
build: './tripgen'
networks:
- evidssnet
environment:
- GITHUB_PAT=$GITHUB_PAT
- AFDC_API_KEY=$AFDC_API_KEY
- MAPBOX_ACCESS_TOKEN=$MAPBOX_ACCESS_TOKEN
- MAIN_USER=$DBREAD_USER
- MAIN_PWD=$DBREAD_PWD
- MAIN_HOST=$MAIN_HOST
- MAIN_PORT=$MAIN_PORT
- MAIN_DB=$MAIN_DB
- SOCRATA_APP_TOKEN=$SOCRATA_APP_TOKEN
- MAILGUN_API_KEY=$MAILGUN_API_KEY
redis:
image: 'redis:6.0.6'
volumes:
- $PWD/redis-data:/var/lib/redis
ports:
- '6379:6379'
networks:
- evidssnet
restart: always
simman:
build: './simman'
depends_on:
- redis
ports:
- '${SIMMAN_PORT}:${SIMMAN_PORT}'
networks:
- evidssnet
volumes:
- $HOME/.aws/:/home/app/.aws/:ro
environment:
- SIMMAN_PORT=$SIMMAN_PORT
- REDIS_HOST=$REDIS_HOST
- MAIN_USER=$DBWRITE_USER
- MAIN_PWD=$DBWRITE_PWD
- MAIN_HOST=$MAIN_HOST
- MAIN_PORT=$MAIN_PORT
- MAIN_DB=$MAIN_DB
- EC2_SECURITY_GROUPNAME=$EC2_SECURITY_GROUPNAME
- EC2_KEYPAIR_NAME=$EC2_KEYPAIR_NAME
- EC_R_AMI_ID=$EC_R_AMI_ID
- IAM_INSTANCE_PROFILE_ARN=$IAM_INSTANCE_PROFILE_ARN
- EC_GAMA_AMI_ID=$EC_GAMA_AMI_ID
- RESVIEW_HOST=$RESVIEW_HOST
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION
command:
- nodemon
- index.js
restart: always
networks:
evidssnet: null