Skip to content

Commit

Permalink
corrected volume maping errors in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitRanque committed Mar 13, 2019
1 parent 54aa5c3 commit 219d8ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ version: '3.6'
services:
postgres:
volumes:
- ./docker/postgres:/var/lib/postgresql
- postgres:/var/lib/postgresql/data
pgadmin:
volumes:
- ./docker/pgadmin:/var/lib/pgadmin
- pgadmin:/var/lib/pgadmin
business-logic:
image: business-logic:dev
build:
Expand All @@ -17,6 +17,6 @@ services:
volumes:
- ./business-logic:/usr/app
- /usr/app/node_modules
# volumes:
# postgres:
# pgadmin:
volumes:
postgres:
pgadmin:
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ services:
POSTGRES_PASSWORD: ${PG_PASSWORD}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./postgres:/var/lib/postgresql/data/pgdata
- ./postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:4.3
restart: always
depends_on:
- postgres
- postgres
ports:
- "5050:80"
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
Expand All @@ -30,9 +30,9 @@ services:
graphql-engine:
image: hasura/graphql-engine:v1.0.0-alpha39
ports:
- "4000:8080"
- "4000:8080"
depends_on:
- "postgres"
- "postgres"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${PG_USERNAME}:${PG_PASSWORD}@postgres:5432/${PG_DATABASE}
Expand Down

0 comments on commit 219d8ff

Please sign in to comment.