Skip to content

Commit

Permalink
Fix post requests in notebook, remove postgres containers (facilitate…
Browse files Browse the repository at this point in the history
…d through djqs now) (DataJunction#16)

* removing postgres containers, all through djqs now

* Fix post requests for demo notebook
  • Loading branch information
samredai committed Apr 24, 2023
1 parent 7218c27 commit bc441a7
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 155 deletions.
37 changes: 0 additions & 37 deletions docker-compose.yml
@@ -1,7 +1,5 @@
version: "3"
volumes:
postgres_data: {}
postgres_roads_example: {}
redis_data: {}

networks:
Expand Down Expand Up @@ -30,7 +28,6 @@ services:
- "8000:8000"
depends_on:
- db_migration
- postgres_examples
- djqs
extra_hosts:
- "host.docker.internal:host-gateway"
Expand Down Expand Up @@ -59,39 +56,6 @@ services:
networks:
- core

postgres_examples:
container_name: postgres_examples
networks:
- core
image: postgres:latest
volumes:
- "${CORE_SERVICE}/examples/docker/postgres_init.sql:/docker-entrypoint-initdb.d/init.sql"
- postgres_data:/var/lib/postgresql/data
# dbt
- "${CORE_SERVICE}/examples/dbt/postgres_init.sql:/docker-entrypoint-initdb.d/init_dbt.sql"
- "${CORE_SERVICE}/examples/dbt:/docker-entrypoint-dbt"
environment:
- POSTGRES_PASSWORD=FoolishPassword
- POSTGRES_USER=username
- POSTGRES_DB=examples
ports:
- "5433:5432"

postgres-roads:
container_name: postgres-roads
networks:
- core
image: postgres:latest
volumes:
- "${CORE_SERVICE}/examples/docker/postgres_init.roads.sql:/docker-entrypoint-initdb.d/init.sql"
- "${CORE_SERVICE}/postgres_roads_example:/var/lib/postgresql/data"
environment:
- POSTGRES_PASSWORD=dj
- POSTGRES_USER=dj
- POSTGRES_DB=roads
ports:
- "5435:5432"

djqs:
container_name: djqs
stdin_open: true
Expand All @@ -108,7 +72,6 @@ services:
- "8001:8001"
depends_on:
- djqs-db-migration
- postgres-roads

djqs-db-migration:
container_name: djqs-db-migration
Expand Down

0 comments on commit bc441a7

Please sign in to comment.