forked from openreferral/ServiceNetGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.sh
executable file
·29 lines (26 loc) · 1.05 KB
/
docker-compose.sh
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
#!/bin/sh
# A utility that sets the POSTGRES_HOST environment variable to the host ip available from inside the containers
# This allows to use a postgres instance installed on the host system
# If you want to use Postgres inside Docker, empty these exports
export POSTGRES_HOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')
export POSTGRES_PORT=5432
export POSTGRES_USERNAME=postgres
export POSTGRES_PASSWORD=password
# Remember to create 'uuid-ossp' extension aswell as 'auth' and 'gateway' schemas in this database
export POSTGRES_DB=ServiceNet
# defaults to MongoDB inside Docker
# export MONGODB_HOST=
# export MONGODB_PORT=
# export MONGODB_DB=
export JHIPSTER_OAUTH2_CLIENT_SECRET=changeme
export SPRING_OAUTH2_CLIENT_SECRET=changeme
export SPRING_OAUTH2_SESSION_TIMEOUT=3600
export SPRING_OAUTH2_ACCESS_TOKEN_VALIDITY=3600
export SPRING_OAUTH2_REFRESH_TOKEN_VALIDITY=604800
# export GOOGLE_API_KEY=
# export EDEN_API_KEY=
# export UWBA_API_KEY=
# export SENDGRID_API_KEY=
# export FEEDBACK_RECEIVER_ADDRESS=
# export SN_VERSION_TAG=
exec docker-compose $@