Skip to content

Commit

Permalink
moved mapped docker directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Bienvenido Benoit Ranque committed Mar 9, 2019
1 parent 546de5a commit 54aa5c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
.env.production
.env.production
docker
13 changes: 7 additions & 6 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:
- pgdata:/var/lib/postgresql/data/pgdata
# expose ports on host machine, only in development
# ports:
# - "5432:5432"
- ./docker/postgres:/var/lib/postgresql
pgadmin:
volumes:
- ./docker/pgadmin:/var/lib/pgadmin
business-logic:
image: business-logic:dev
build:
Expand All @@ -17,5 +17,6 @@ services:
volumes:
- ./business-logic:/usr/app
- /usr/app/node_modules
volumes:
pgdata:
# volumes:
# postgres:
# pgadmin:
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ services:
POSTGRES_PASSWORD: ${PG_PASSWORD}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./data:/var/lib/postgresql/data/pgdata
- ./postgres:/var/lib/postgresql/data/pgdata
pgadmin:
image: dpage/pgadmin4
image: dpage/pgadmin4:4.3
restart: always
depends_on:
- postgres
Expand All @@ -25,6 +25,8 @@ services:
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- ./pgadmin:/var/lib/pgadmin
graphql-engine:
image: hasura/graphql-engine:v1.0.0-alpha39
ports:
Expand Down

0 comments on commit 54aa5c3

Please sign in to comment.