Skip to content

Commit 994c4dc

Browse files
lepsalexandricDu
authored andcommitted
docker-compose.yml and .env.schema updated so that it runs (#106)
1 parent 00d02b1 commit 994c4dc

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.env.schema

+4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
EGO_ACTIVE_PROFILES=
2+
EGO_SERVER_PORT=
13
EGO_DB_HOST=
24
EGO_DB_PORT=
35
EGO_DB=
46
EGO_DB_USER=
57
EGO_DB_PASS=
68
EGO_SERVER_GOOGLE_CLIENT_IDS=
9+
EGO_SERVER_FACEBOOK_APP_ID=
10+
EGO_SERVER_FACEBOOK_SECRET=
711

812
# required for docker-compose config. This is the port that the api will be available on.
913
API_HOST_PORT=

docker-compose.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@ services:
66
ports:
77
- "$API_HOST_PORT:8081"
88
environment:
9-
EGO_DB_HOST=postgres
10-
EGO_DB_PORT=5432
11-
EGO_DB=ego
12-
EGO_DB_USER=postgres
13-
EGO_DB_PASS=password
14-
EGO_SERVER_GOOGLE_CLIENT_IDS=123456
9+
- EGO_SERVER_PORT=8081
10+
- EGO_DB_HOST=postgres
11+
- EGO_DB_PORT=5432
12+
- EGO_DB=ego
13+
- EGO_DB_USER=postgres
14+
- EGO_DB_PASS=password
15+
- EGO_SERVER_GOOGLE_CLIENT_IDS=123456
16+
- EGO_SERVER_FACEBOOK_APP_ID=123456
17+
- EGO_SERVER_FACEBOOK_SECRET=123456
18+
- EGO_ACTIVE_PROFILES=demo
1519
depends_on:
1620
- postgres
1721

1822
postgres:
1923
restart: always
2024
image: postgres:9.5
2125
environment:
22-
POSTGRES_DB=ego
23-
POSTGRES_PASSWORD=password
26+
- POSTGRES_DB=ego
27+
- POSTGRES_PASSWORD=password
2428
volumes:
2529
- ./src/main/resources/schemas/psql-schema.sql:/docker-entrypoint-initdb.d/init.sql
2630
expose:

0 commit comments

Comments
 (0)