Skip to content

Commit 9239074

Browse files
fix: docker-compose and gitpod configs
1 parent 29c131b commit 9239074

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.gitpod.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ tasks:
55
ports:
66
- port: 8000
77
onOpen: ignore
8+
visibility: public
89
- port: 5432
910
onOpen: ignore
11+
visibility: public
1012
- port: 5001
1113
onOpen: ignore
14+
visibility: public
1215
- port: 10021
1316
onOpen: ignore
17+
visibility: public
1418
- port: 10022
1519
onOpen: ignore
20+
visibility: public
1621
- port: 3007
17-
onOpen: ignore
22+
onOpen: ignore
23+
visibility: public

docker-compose-gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
ports:
2020
- "5432:5432"
2121
environment:
22-
- POSTGRES_USER=${DB_USER_NAME}
22+
- POSTGRES_USER=${DB_USERNAME}
2323
- POSTGRES_PASSWORD=${DB_PASSWORD}
2424
- POSTGRES_DB=${DB_NAME}
2525
- PGDATA=/var/lib/postgresql/data/pgdata
@@ -34,7 +34,7 @@ services:
3434
- db
3535
restart: always
3636
environment:
37-
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USER_NAME}:${DB_PASSWORD}@db:5432/${DB_NAME}
37+
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USERNAME}:${DB_PASSWORD}@db:5432/${DB_NAME}
3838
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
3939
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
4040
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_PASS}

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
ports:
3737
- "5432:5432"
3838
environment:
39-
- POSTGRES_USER=${DB_USER_NAME}
39+
- POSTGRES_USER=${DB_USERNAME}
4040
- POSTGRES_PASSWORD=${DB_PASSWORD}
4141
- POSTGRES_DB=${DB_NAME}
4242
- PGDATA=/var/lib/postgresql/data/pgdata
@@ -51,7 +51,7 @@ services:
5151
- db
5252
restart: always
5353
environment:
54-
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USER_NAME}:${DB_PASSWORD}@db:5432/${DB_NAME}
54+
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USERNAME}:${DB_PASSWORD}@db:5432/${DB_NAME}
5555
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
5656
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
5757
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_PASS}

src/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ then
1111
echo "PostgreSQL started"
1212
fi
1313

14-
python manage.py flush --no-input
15-
python manage.py migrate
14+
#python3 manage.py flush --no-input
15+
#python3 manage.py migrate
1616

1717
exec "$@"

0 commit comments

Comments
 (0)