Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,4 @@ services:
context: .
dockerfile: ./Resources/docker/app/Dockerfile

environment:
- DEBUG=True

# For development, we want to mount the code into the container so that changes are reflected immediately without needing to rebuild the image.
volumes:
- .:/code
- /code/.venv/ # Ignore the virtual environment directory to prevent conflicts between the host and container environments.

graphql-engine:
environment:
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"

# docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pokemon}
POSTGRES_USER: ${POSTGRES_USER:-ash}
POSTGRES_DB: ${POSTGRES_DB:-pokeapi}
volumes:
- .:/code
- /code/.venv/ # Ignore the venv to prevent conflicts between the host and container environments
depends_on:
db:
condition: service_healthy
Expand All @@ -34,7 +37,7 @@ services:
restart: always

web:
image: nginx:1.27.3-alpine3.20
image: nginx:1.31.2-alpine3.23
ports:
- "80:80"
- "443:443"
Expand All @@ -54,7 +57,7 @@ services:
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER:-ash}:${POSTGRES_PASSWORD:-pokemon}@db:5432/${POSTGRES_DB:-pokeapi}
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "false"
HASURA_GRAPHQL_LOG_LEVEL: "warn"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
Expand Down
Loading